diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-06 14:24:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-06 14:24:07 +0000 |
commit | df9ada40a53a804d2d90d9dfddc149a68c141a15 (patch) | |
tree | ecf56c7cf18b8a95b2fc6a38933ea7dd142c432b /src/libserver/task.c | |
parent | 1622570f58b5f5b184f97cd75a52a98cc0b1721a (diff) | |
download | rspamd-df9ada40a53a804d2d90d9dfddc149a68c141a15.tar.gz rspamd-df9ada40a53a804d2d90d9dfddc149a68c141a15.zip |
Add learning implementation.
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; } |