summaryrefslogtreecommitdiffstats
path: root/conf/statistic.conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-19 15:08:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-19 15:08:44 +0100
commita897287fbc34772d549cfa0d2aa31e23533edbe5 (patch)
tree57268a52e8004a2a9f4dc512e7f4179443276c9e /conf/statistic.conf
parent808a8d2f49e77b4339a4140b865ee9a671b209ef (diff)
downloadrspamd-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.conf10
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"