aboutsummaryrefslogtreecommitdiffstats
path: root/conf/rspamd-basic.xml.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-10-04 22:14:10 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-10-04 22:14:10 +0400
commit3789849b7b2e617d0a287fe77490b6643f3a6b74 (patch)
tree8415305aee39a3aad6adbccbc1941a62f3a41cf8 /conf/rspamd-basic.xml.in
parent14e1129068d55bc8de0618832d4f7d33bb1b0f06 (diff)
downloadrspamd-3789849b7b2e617d0a287fe77490b6643f3a6b74.tar.gz
rspamd-3789849b7b2e617d0a287fe77490b6643f3a6b74.zip
* Add meta-classification example.
Many changes to advanced statistic and meta-classification logic. Add example of complex meta-classification.
Diffstat (limited to 'conf/rspamd-basic.xml.in')
-rw-r--r--conf/rspamd-basic.xml.in126
1 files changed, 126 insertions, 0 deletions
diff --git a/conf/rspamd-basic.xml.in b/conf/rspamd-basic.xml.in
index 06bd80c03..fbeee898a 100644
--- a/conf/rspamd-basic.xml.in
+++ b/conf/rspamd-basic.xml.in
@@ -603,6 +603,132 @@
</statfile>
</classifier>
+<!-- Advanced meta-classification statistic -->
+<!--
+<classifier type="bayes">
+ <tokenizer>osb-text</tokenizer>
+ <metric>default</metric>
+ <min_tokens>6</min_tokens>
+ <max_tokens>5000</max_tokens>
+ <statfile>
+ <symbol>BAYES_HAM</symbol>
+ <size>50M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes.ham</path>
+ <spam>no</spam>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_SPAM</symbol>
+ <size>50M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes.spam</path>
+ <spam>yes</spam>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_HAM_RU</symbol>
+ <size>50M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_ru.ham</path>
+ <language>ru</language>
+ <spam>no</spam>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_SPAM_RU</symbol>
+ <size>50M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_ru.spam</path>
+ <language>ru</language>
+ <spam>yes</spam>
+ </statfile>
+
+ <statfile>
+ <symbol>BAYES_SPAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_manyrcpt.spam</path>
+ <spam>yes</spam>
+ <label>many recipients</label>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_HAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_manyrcpt.ham</path>
+ <spam>no</spam>
+ <label>many recipients</label>
+ </statfile>
+
+ <statfile>
+ <symbol>BAYES_SPAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_undisclosedrcpt.spam</path>
+ <spam>yes</spam>
+ <label>undisclosed recipients</label>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_HAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_undisclosedrcpt.ham</path>
+ <spam>no</spam>
+ <label>undisclosed recipients</label>
+ </statfile>
+
+ <statfile>
+ <symbol>BAYES_SPAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_maillist.spam</path>
+ <spam>yes</spam>
+ <label>maillist</label>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_HAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_maillist.ham</path>
+ <spam>no</spam>
+ <label>maillist</label>
+ </statfile>
+
+ <statfile>
+ <symbol>BAYES_SPAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_longsubject.spam</path>
+ <spam>yes</spam>
+ <label>long subject</label>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_HAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_longsubject.ham</path>
+ <spam>no</spam>
+ <label>long subject</label>
+ </statfile>
+
+ <statfile>
+ <symbol>BAYES_SPAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_replyto.spam</path>
+ <spam>yes</spam>
+ <label>different reply to</label>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_HAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_replyto.ham</path>
+ <spam>no</spam>
+ <label>different reply to</label>
+ </statfile>
+
+ <statfile>
+ <symbol>BAYES_SPAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_replymessage.spam</path>
+ <spam>yes</spam>
+ <label>reply message</label>
+ </statfile>
+ <statfile>
+ <symbol>BAYES_HAM</symbol>
+ <size>10M</size>
+ <path>@LOCALSTATES_PREFIX@/bayes_replymessage.ham</path>
+ <spam>no</spam>
+ <label>reply message</label>
+ </statfile>
+</classifier>
+-->
+
<!-- End of classifiers section -->
<!-- Modules section -->