diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-01 12:18:13 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-01 12:18:13 +0000 |
commit | 83f62474fa88174151e5b1482c05e39b6d5422ee (patch) | |
tree | f0f48201cb8080ca684df5b0927f4d1bbcd37d62 /src | |
parent | fa5bd550a5a81fb7b5029f3b5079b33d3b96ec8a (diff) | |
download | rspamd-83f62474fa88174151e5b1482c05e39b6d5422ee.tar.gz rspamd-83f62474fa88174151e5b1482c05e39b6d5422ee.zip |
[Fix] Do not skip post-filters when pre-filters have set some results
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/task.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index e6666cd47..cb3d45124 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -685,14 +685,6 @@ rspamd_task_process (struct rspamd_task *task, guint stages) return TRUE; } - if (task->pre_result.action != METRIC_ACTION_MAX) { - /* Skip all if we have result here */ - task->processed_stages |= RSPAMD_TASK_STAGE_DONE; - msg_info_task ("skip filters, as pre-filter returned %s action", - rspamd_action_to_str (task->pre_result.action)); - return TRUE; - } - task->flags |= RSPAMD_TASK_FLAG_PROCESSING; st = rspamd_task_select_processing_stage (task, stages); |