From: Vsevolod Stakhov Date: Wed, 16 Sep 2015 14:15:52 +0000 (+0100) Subject: Use new statistics format in the default config. X-Git-Tag: 1.0.0~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a84bea6efa40304f470bc9efb1ff9e62e7de01b3;p=thirdparty%2Frspamd.git Use new statistics format in the default config. --- diff --git a/conf/statistic.conf b/conf/statistic.conf index ab6485c485..bd7f196987 100644 --- a/conf/statistic.conf +++ b/conf/statistic.conf @@ -1,19 +1,28 @@ # Rspamd statistic setup +# Pre-build files could be loaded from: +# http://rspamd.com/rspamd_statistics/bayes.spam.sqlite +# - and - +# http://rspamd.com/rspamd_statistics/bayes.ham.sqlite classifier { - type = "bayes"; - tokenizer = "osb-text"; - metric = "default"; - min_tokens = 10; - max_tokens = 1000; - statfile { - symbol = "BAYES_HAM"; - size = 50Mb; - path = "$DBDIR/bayes.ham"; - } - statfile { - symbol = "BAYES_SPAM"; - size = 50Mb; - path = "$DBDIR/bayes.spam"; - } + type = "bayes"; + tokenizer { + name = "osb"; + } + cache { + path = "${DBDIR}/learn_cache.sqlite"; + } + min_tokens = 11; + backend = "sqlite3"; + languages_enabled = true; + statfile { + symbol = "BAYES_HAM"; + path = "${DBDIR}/bayes.ham.sqlite"; + spam = false; + } + statfile { + symbol = "BAYES_SPAM"; + path = "${DBDIR}/bayes.spam.sqlite"; + spam = true; + } }