aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-26 16:57:36 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-26 16:57:36 +0400
commit6eded20b2c15e524ed9a83c436a3b5f0bfbd253c (patch)
treeb5a5d7bf336a7eaf965d72554c8b51028f9eb0d1 /src/main.c
parent8e4282bb260132232c26f3f87f48181044ea6cc3 (diff)
downloadrspamd-6eded20b2c15e524ed9a83c436a3b5f0bfbd253c.tar.gz
rspamd-6eded20b2c15e524ed9a83c436a3b5f0bfbd253c.zip
* Add max_tokens options to avoid classifying and learning with too much tokens from one message.
Fix stupid memory leakage on client's timeout.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index e37e830c0..f043023a2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -873,6 +873,8 @@ main (gint argc, gchar **argv, gchar **env)
/* Init classifiers options */
register_classifier_opt ("bayes", "min_tokens");
register_classifier_opt ("winnow", "min_tokens");
+ register_classifier_opt ("bayes", "max_tokens");
+ register_classifier_opt ("winnow", "max_tokens");
register_classifier_opt ("winnow", "learn_threshold");
/* Pre-init of cache */