]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Another fix for postfilters
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 Jul 2016 09:53:10 +0000 (10:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 Jul 2016 09:53:10 +0000 (10:53 +0100)
src/libserver/symbols_cache.c

index 61060e29c8c457b13a88d8386b882fe830c8cf3a..2642b607ad164cbaf6f873a03e116070d25744b9 100644 (file)
@@ -1448,6 +1448,11 @@ rspamd_symbols_cache_process_symbols (struct rspamd_task * task,
                checkpoint = task->checkpoint;
        }
 
+       if (stage == RSPAMD_TASK_STAGE_POST_FILTERS && checkpoint->pass <
+                       RSPAMD_CACHE_PASS_POSTFILTERS) {
+               checkpoint->pass = RSPAMD_CACHE_PASS_POSTFILTERS;
+       }
+
        msg_debug_task ("symbols processing stage at pass: %d", checkpoint->pass);
        start_events_pending = rspamd_session_events_pending (task->s);