aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-02-05 16:55:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-02-05 16:55:22 +0000
commit863b89e6c9f54e0dd838bf47e68b61988dee8447 (patch)
tree71fdcd9a696bc4a45954d451339217206e7eb1fd
parent9f1b796c983bc11d5a6865e0cb5b9a274d51d577 (diff)
downloadrspamd-863b89e6c9f54e0dd838bf47e68b61988dee8447.tar.gz
rspamd-863b89e6c9f54e0dd838bf47e68b61988dee8447.zip
Tokenize subject even if a message is empty.
-rw-r--r--src/filter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filter.c b/src/filter.c
index 20b924cc0..311a9aa25 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -673,12 +673,13 @@ classifiers_callback (gpointer value, void *arg)
g_hash_table_insert (task->tokens, cl->tokenizer, tokens);
}
+ /* Take care of subject */
+ tokenize_subject (task, &tokens);
+
if (tokens == NULL) {
return;
}
- /* Take care of subject */
- tokenize_subject (task, &tokens);
if (cbdata->nL != NULL) {
rspamd_mutex_lock (cbdata->nL->m);
cl->classifier->classify_func (ctx, task->worker->srv->statfile_pool, tokens, task, cbdata->nL->L);