aboutsummaryrefslogtreecommitdiffstats
path: root/src/classifiers
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-01 18:17:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-01 18:17:24 +0000
commit566f727b8c2386a614bb6909550c173357c39af6 (patch)
tree6425331365768bea8180c80c27bb9fad47c98396 /src/classifiers
parent2daf38ce8feb024175edd354b4e9933390fc74f4 (diff)
downloadrspamd-566f727b8c2386a614bb6909550c173357c39af6.tar.gz
rspamd-566f727b8c2386a614bb6909550c173357c39af6.zip
Explicitly set in_class field while learning.
Diffstat (limited to 'src/classifiers')
-rw-r--r--src/classifiers/bayes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c
index 184a63802..ae291de24 100644
--- a/src/classifiers/bayes.c
+++ b/src/classifiers/bayes.c
@@ -472,6 +472,7 @@ bayes_learn_spam (struct classifier_ctx* ctx, statfile_pool_t *pool,
data.pool = pool;
data.now = time (NULL);
data.ctx = ctx;
+ data.in_class = TRUE;
data.processed_tokens = 0;
if (ctx->cfg->opts && (value = g_hash_table_lookup (ctx->cfg->opts, "max_tokens")) != NULL) {