]> source.dussan.org Git - 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>
Mon, 10 Feb 2014 13:06:52 +0000 (13:06 +0000)
src/filter.c

index b1448f1732b23d40b974f02d0f0fa59f50f1c42b..73b3edace773e176d0e4e4ea9a08786f20eee951 100644 (file)
@@ -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);