diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-07-24 17:40:38 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-07-24 17:40:38 -0700 |
commit | d59812d5769fbecbec47fdb5a537e29aaa579372 (patch) | |
tree | 3a663105295bc8440698d18f32087021c01b2627 /src/libserver/task.c | |
parent | 379055dbbb4af997b4d3ffb161d447872d7ca357 (diff) | |
download | rspamd-d59812d5769fbecbec47fdb5a537e29aaa579372.tar.gz rspamd-d59812d5769fbecbec47fdb5a537e29aaa579372.zip |
Add option `check_all_filters`.
This option disables the optimization of messages processing and turn on
mode when all filters are checked.
Suggested by: AL
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index a796b3f93..d71e0412e 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -55,6 +55,7 @@ rspamd_task_new (struct rspamd_worker *worker) new_task->state = READ_MESSAGE; if (worker) { new_task->cfg = worker->srv->cfg; + new_task->pass_all_filters = new_task->cfg->check_all_filters; } #ifdef HAVE_CLOCK_GETTIME # ifdef HAVE_CLOCK_PROCESS_CPUTIME_ID |