Browse Source

Learn legacy fuzzy as well for now.

tags/0.8.0
Vsevolod Stakhov 9 years ago
parent
commit
ebf20c3d70
1 changed files with 4 additions and 6 deletions
  1. 4
    6
      src/plugins/fuzzy_check.c

+ 4
- 6
src/plugins/fuzzy_check.c View 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);

Loading…
Cancel
Save