aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-09 21:57:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-09 21:57:36 +0000
commit42e13bdaa1afee59cbbd62b2001e05e4f53f4888 (patch)
treed6efc5237ebd30b84b470039f06591dbc701f377 /src/libserver
parentdefd16920cb48f0fc1d2074ab551ba5b3b008e11 (diff)
downloadrspamd-42e13bdaa1afee59cbbd62b2001e05e4f53f4888.tar.gz
rspamd-42e13bdaa1afee59cbbd62b2001e05e4f53f4888.zip
Fix learn errors reporting
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/task.c4
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: