]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Apply idempotent filters to skipped messages
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 Aug 2018 11:14:34 +0000 (12:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 Aug 2018 11:14:34 +0000 (12:14 +0100)
src/libserver/task.c

index 437bc48294c7f2e91368f73a01fa0e2c938ce915..7d00693bc25934df55dd96bf1168a6962bd1c751 100644 (file)
@@ -841,7 +841,9 @@ rspamd_task_process (struct rspamd_task *task, guint stages)
        }
 
        if (RSPAMD_TASK_IS_SKIPPED (task)) {
-               task->processed_stages |= RSPAMD_TASK_STAGE_DONE;
+               /* Set all bits except idempotent filters */
+               task->processed_stages |= 0x7FFF;
+               return rspamd_task_process (task, stages);
        }
 
        task->flags &= ~RSPAMD_TASK_FLAG_PROCESSING;