We now disallow statistics to be used unless at least 200 learns has
been performed for the specified classifier
# - and -
# http://rspamd.com/rspamd_statistics/bayes.ham.sqlite
-classifier {
- type = "bayes";
+classifier "bayes" {
tokenizer {
name = "osb";
}
min_tokens = 11;
backend = "sqlite3";
languages_enabled = true;
+ min_learns = 200;
+
statfile {
symbol = "BAYES_HAM";
path = "${DBDIR}/bayes.ham.sqlite";
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"