diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-08-05 23:08:18 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-08-05 23:08:18 +0100 |
commit | 9632c62a868e9086c5a016eb6b259ffe6f233770 (patch) | |
tree | 6bc77bac35d7a78c7573ae010a0c47b4045f5662 /src/libserver/task.c | |
parent | 76a11f2feb1be9d7f8940ab6a77be04a222ee81d (diff) | |
download | rspamd-9632c62a868e9086c5a016eb6b259ffe6f233770.tar.gz rspamd-9632c62a868e9086c5a016eb6b259ffe6f233770.zip |
[Feature] Allow to use postfilters in composites
We actually process composites twice now so it somehow slows down
processing by extra hash lookup. Additional logic to regenerate metric
reply if something is changed by this extra run of composites is also added.
Issue: #1726
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 3c8eeb24e..876ab51ca 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -780,6 +780,8 @@ rspamd_task_process (struct rspamd_task *task, guint stages) break; case RSPAMD_TASK_STAGE_DONE: + /* Second run of composites processing */ + rspamd_make_composites (task); task->processed_stages |= RSPAMD_TASK_STAGE_DONE; break; |