]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not skip post-filters when pre-filters have set some results
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Mar 2017 12:18:13 +0000 (12:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Mar 2017 12:18:13 +0000 (12:18 +0000)
src/libserver/task.c

index e6666cd475ee1f2f912c5ff876fb9795b3f81c35..cb3d451246ed02838755757e9021f5df6fec154b 100644 (file)
@@ -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);