aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-23 18:36:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-23 18:36:41 +0000
commit3280d0a385cc84c4f2b44a556c26a73291d59820 (patch)
tree7354c0d009e8df9166aa7d379c4ff03fcf1569a0 /src/libserver/task.c
parent171031923755ae89ed2672130b3fb3665c5c8796 (diff)
downloadrspamd-3280d0a385cc84c4f2b44a556c26a73291d59820.tar.gz
rspamd-3280d0a385cc84c4f2b44a556c26a73291d59820.zip
Restore multiple classifiers support
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r--src/libserver/task.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index c4ae1762c..7d34e830b 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -645,12 +645,16 @@ rspamd_task_re_cache_check (struct rspamd_task *task, const gchar *re)
}
gboolean
-rspamd_learn_task_spam (struct rspamd_classifier_config *cl,
- struct rspamd_task *task,
+rspamd_learn_task_spam (struct rspamd_task *task,
gboolean is_spam,
+ const gchar *classifier,
GError **err)
{
- return rspamd_stat_learn (task, is_spam, task->cfg->lua_state, err);
+ return rspamd_stat_learn (task,
+ is_spam,
+ task->cfg->lua_state,
+ classifier,
+ err);
}
static gboolean