]> source.dussan.org Git - rspamd.git/commitdiff
[Rework] Slashing: Turn off postfilters when passthrough result is set
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Aug 2019 09:14:37 +0000 (10:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Aug 2019 09:14:37 +0000 (10:14 +0100)
src/lua/lua_task.c

index afc741af9475b9cdee4bc9c7418d9c50fc116f19..9069d3f85407757eee934210db0409110556bbe6 100644 (file)
@@ -2035,8 +2035,7 @@ lua_task_set_pre_result (lua_State * L)
                                                                           RSPAMD_TASK_STAGE_CLASSIFIERS_PRE |
                                                                           RSPAMD_TASK_STAGE_CLASSIFIERS_POST);
                        rspamd_symcache_disable_all_symbols (task, task->cfg->cache,
-                                       SYMBOL_TYPE_IDEMPOTENT | SYMBOL_TYPE_IGNORE_PASSTHROUGH |
-                                       SYMBOL_TYPE_POSTFILTER);
+                                       SYMBOL_TYPE_IDEMPOTENT | SYMBOL_TYPE_IGNORE_PASSTHROUGH);
                }
        }
        else {