diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-18 09:32:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-18 09:32:21 +0100 |
commit | cb2284917bc94c5033ed12f3789bdf8611cec6de (patch) | |
tree | e32d27fc4e3b4e2c28243c42ece12f667e1ea34e /src/libserver/task.c | |
parent | dce9dda76266bc2627e9cb5fe6b5ac46a28d2cd2 (diff) | |
download | rspamd-cb2284917bc94c5033ed12f3789bdf8611cec6de.tar.gz rspamd-cb2284917bc94c5033ed12f3789bdf8611cec6de.zip |
[Fix] Distinguish empty and non-empty prefilters
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index acec922a7..e9a63cbad 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -716,9 +716,9 @@ rspamd_task_process (struct rspamd_task *task, guint stages) } break; - case RSPAMD_TASK_STAGE_PRE_FILTERS: + case RSPAMD_TASK_STAGE_PRE_FILTERS_EMPTY: rspamd_symcache_process_symbols (task, task->cfg->cache, - RSPAMD_TASK_STAGE_PRE_FILTERS); + RSPAMD_TASK_STAGE_PRE_FILTERS_EMPTY); break; case RSPAMD_TASK_STAGE_PROCESS_MESSAGE: @@ -727,6 +727,11 @@ rspamd_task_process (struct rspamd_task *task, guint stages) } break; + case RSPAMD_TASK_STAGE_PRE_FILTERS: + rspamd_symcache_process_symbols (task, task->cfg->cache, + RSPAMD_TASK_STAGE_PRE_FILTERS); + break; + case RSPAMD_TASK_STAGE_FILTERS: rspamd_symcache_process_symbols (task, task->cfg->cache, RSPAMD_TASK_STAGE_FILTERS); |