diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-29 15:16:17 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-29 15:16:17 +0000 |
commit | 84bba58ac10018f5ad541331ad3b84ea1b1119b6 (patch) | |
tree | 1785fe89a944bba739fa3998000a19708fe8e2ab /src/libserver/task.c | |
parent | b96c9874f31667f4849088deb87e5da7df0575b0 (diff) | |
download | rspamd-84bba58ac10018f5ad541331ad3b84ea1b1119b6.tar.gz rspamd-84bba58ac10018f5ad541331ad3b84ea1b1119b6.zip |
Add substages for classification
Diffstat (limited to 'src/libserver/task.c')
-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 758b90807..4f3a9d72c 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -440,7 +440,9 @@ rspamd_task_process (struct rspamd_task *task, guint stages) break; case RSPAMD_TASK_STAGE_CLASSIFIERS: - if (rspamd_stat_classify (task, task->cfg->lua_state, &stat_error) == + case RSPAMD_TASK_STAGE_CLASSIFIERS_PRE: + case RSPAMD_TASK_STAGE_CLASSIFIERS_POST: + if (rspamd_stat_classify (task, task->cfg->lua_state, st, &stat_error) == RSPAMD_STAT_PROCESS_ERROR) { msg_err_task ("classify error: %e", stat_error); g_error_free (stat_error); |