diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-09 21:57:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-09 21:57:36 +0000 |
commit | 42e13bdaa1afee59cbbd62b2001e05e4f53f4888 (patch) | |
tree | d6efc5237ebd30b84b470039f06591dbc701f377 /src/libserver | |
parent | defd16920cb48f0fc1d2074ab551ba5b3b008e11 (diff) | |
download | rspamd-42e13bdaa1afee59cbbd62b2001e05e4f53f4888.tar.gz rspamd-42e13bdaa1afee59cbbd62b2001e05e4f53f4888.zip |
Fix learn errors reporting
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/task.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index fe7d490c2..2f79b540b 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -455,7 +455,9 @@ rspamd_task_process (struct rspamd_task *task, guint stages) case RSPAMD_TASK_STAGE_POST_FILTERS: rspamd_lua_call_post_filters (task); - rspamd_stat_check_autolearn (task); + if (task->flags & RSPAMD_TASK_FLAG_LEARN_AUTO) { + rspamd_stat_check_autolearn (task); + } break; case RSPAMD_TASK_STAGE_LEARN: |