diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-19 15:08:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-19 15:08:44 +0100 |
commit | a897287fbc34772d549cfa0d2aa31e23533edbe5 (patch) | |
tree | 57268a52e8004a2a9f4dc512e7f4179443276c9e /conf/statistic.conf | |
parent | 808a8d2f49e77b4339a4140b865ee9a671b209ef (diff) | |
download | rspamd-a897287fbc34772d549cfa0d2aa31e23533edbe5.tar.gz rspamd-a897287fbc34772d549cfa0d2aa31e23533edbe5.zip |
[Feature] Set the default limit for classifier
We now disallow statistics to be used unless at least 200 learns has
been performed for the specified classifier
Diffstat (limited to 'conf/statistic.conf')
-rw-r--r-- | conf/statistic.conf | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/conf/statistic.conf b/conf/statistic.conf index 3315fe4b4..697f1ccef 100644 --- a/conf/statistic.conf +++ b/conf/statistic.conf @@ -19,8 +19,7 @@ # - and - # http://rspamd.com/rspamd_statistics/bayes.ham.sqlite -classifier { - type = "bayes"; +classifier "bayes" { tokenizer { name = "osb"; } @@ -30,6 +29,8 @@ classifier { min_tokens = 11; backend = "sqlite3"; languages_enabled = true; + min_learns = 200; + statfile { symbol = "BAYES_HAM"; path = "${DBDIR}/bayes.ham.sqlite"; @@ -40,6 +41,7 @@ classifier { path = "${DBDIR}/bayes.spam.sqlite"; spam = true; } - .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/statistic.conf" - .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/statistic.conf" } + +.include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/statistic.conf" +.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/statistic.conf" |