From: Vsevolod Stakhov Date: Wed, 1 Mar 2017 12:18:13 +0000 (+0000) Subject: [Fix] Do not skip post-filters when pre-filters have set some results X-Git-Tag: 1.5.0~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83f62474fa88174151e5b1482c05e39b6d5422ee;p=rspamd.git [Fix] Do not skip post-filters when pre-filters have set some results --- 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);