]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Use new statistics format in the default config.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 16 Sep 2015 14:15:52 +0000 (15:15 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 16 Sep 2015 14:15:52 +0000 (15:15 +0100)
conf/statistic.conf

index ab6485c485125d9574d1d0b068cd83225053b184..bd7f1969874c529e51fa53e9962c991d6ae268be 100644 (file)
@@ -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;
+       }
 }