diff options
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 290101023..579cc3461 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -610,11 +610,7 @@ rspamd_learn_task_spam (struct rspamd_task *task, const gchar *classifier, GError **err) { - return rspamd_stat_learn (task, - is_spam, - task->cfg->lua_state, - classifier, - err); + return FALSE; } static gboolean @@ -999,7 +995,8 @@ rspamd_task_write_log (struct rspamd_task *task) g_assert (task != NULL); - if (task->cfg->log_format == NULL || task->flags & RSPAMD_TASK_FLAG_NO_LOG) { + if (task->cfg->log_format == NULL || + (task->flags & RSPAMD_TASK_FLAG_NO_LOG)) { return; } |