]> source.dussan.org Git - rspamd.git/commitdiff
Learn legacy fuzzy as well for now.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Dec 2014 16:02:34 +0000 (16:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Dec 2014 16:02:34 +0000 (16:02 +0000)
src/plugins/fuzzy_check.c

index df2ffd9f5d4d549eef652a6b9b525a33538e743b..9ae49fc3d62a007cf490875a3a1e714e5a3931f6 100644 (file)
@@ -1040,12 +1040,10 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule,
                /*
                 * Try legacy first
                 */
-               if (c == FUZZY_CHECK) {
-                       cmd = fuzzy_cmd_from_text_part (rule, c, flag, value, task->task_pool,
-                                       part, TRUE, NULL);
-                       if (cmd) {
-                               g_ptr_array_add (res, cmd);
-                       }
+               cmd = fuzzy_cmd_from_text_part (rule, c, flag, value, task->task_pool,
+                               part, TRUE, NULL);
+               if (cmd) {
+                       g_ptr_array_add (res, cmd);
                }
                cmd = fuzzy_cmd_from_text_part (rule, c, flag, value, task->task_pool,
                                part, FALSE, NULL);