]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Tokenize subject even if a message is empty.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 5 Feb 2014 16:55:22 +0000 (16:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 5 Feb 2014 16:55:22 +0000 (16:55 +0000)
src/filter.c

index 20b924cc039536ca74f3ed5e48a1fa28d0b5686c..311a9aa25f5bb374ad1338beb3a52b0c836c570c 100644 (file)
@@ -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);