diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-08-11 19:04:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-08-11 19:04:33 +0100 |
commit | 7a4c7de7035499eee2d68d525dc003feb18a749b (patch) | |
tree | bcd03bde59899bc9a368d5cd735b8760b3096ae9 /src/libserver/task.c | |
parent | 574aba03daae0891733bf62a35d390a7e637d6a0 (diff) | |
download | rspamd-7a4c7de7035499eee2d68d525dc003feb18a749b.tar.gz rspamd-7a4c7de7035499eee2d68d525dc003feb18a749b.zip |
[Feature] Add preliminary support of idempotent symbols
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 876ab51ca..4aa2e21ad 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -779,9 +779,14 @@ rspamd_task_process (struct rspamd_task *task, guint stages) } break; - case RSPAMD_TASK_STAGE_DONE: - /* Second run of composites processing */ + case RSPAMD_TASK_STAGE_IDEMPOTENT: + /* Second run of composites processing before idempotent filters */ rspamd_make_composites (task); + rspamd_symbols_cache_process_symbols (task, task->cfg->cache, + RSPAMD_TASK_STAGE_IDEMPOTENT); + break; + + case RSPAMD_TASK_STAGE_DONE: task->processed_stages |= RSPAMD_TASK_STAGE_DONE; break; |