aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-16 15:15:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-16 15:15:52 +0100
commita84bea6efa40304f470bc9efb1ff9e62e7de01b3 (patch)
tree957dcb55fd6b0ff2f6e280156c5a1bed4a309372 /conf
parente1c8f70e07c5985c06dcdfd8cebbbaa6e123b931 (diff)
downloadrspamd-a84bea6efa40304f470bc9efb1ff9e62e7de01b3.tar.gz
rspamd-a84bea6efa40304f470bc9efb1ff9e62e7de01b3.zip
Use new statistics format in the default config.
Diffstat (limited to 'conf')
-rw-r--r--conf/statistic.conf39
1 files changed, 24 insertions, 15 deletions
diff --git a/conf/statistic.conf b/conf/statistic.conf
index ab6485c48..bd7f19698 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;
+ }
}