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.6.9~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d907c37ecc749f4c8502ef79f01afa605a91e043;p=thirdparty%2Frspamd.git Tokenize subject even if a message is empty. --- diff --git a/src/filter.c b/src/filter.c index b1448f1732..73b3edace7 100644 --- a/src/filter.c +++ b/src/filter.c @@ -677,12 +677,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);