From: Vsevolod Stakhov Date: Wed, 5 Feb 2014 16:55:22 +0000 (+0000) Subject: Tokenize subject even if a message is empty. X-Git-Tag: 0.7.0~412 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=863b89e6c9f54e0dd838bf47e68b61988dee8447;p=thirdparty%2Frspamd.git Tokenize subject even if a message is empty. --- diff --git a/src/filter.c b/src/filter.c index 20b924cc03..311a9aa25f 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);