From e2ed2eab53414204b3ee9ffb86dc1e977e955410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Wed, 25 Jul 2018 01:06:12 +0200 Subject: [PATCH] [Rspamd] Remove per_user settings as they were pretty much useless, some minor changes to bayes" --- data/conf/rspamd/local.d/statistic.conf | 48 +++---------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/data/conf/rspamd/local.d/statistic.conf b/data/conf/rspamd/local.d/statistic.conf index 98db7a99..4867f78a 100644 --- a/data/conf/rspamd/local.d/statistic.conf +++ b/data/conf/rspamd/local.d/statistic.conf @@ -1,29 +1,13 @@ classifier "bayes" { tokenizer { - name = "osb"; + name = "osb"; } - + autolearn = false; backend = "redis"; - name = "per_domain_bayes"; min_tokens = 11; - min_learns = 20; + min_learns = 5; new_schema = true; - expiry = 50d; - per_user = <= 0.95 - else - cl = 'ham' - in_class = prob <= 0.05 - end - - if in_class then - return false,string.format('already in class %s; probability %.2f%%', - cl, math.abs((prob - 0.5) * 200.0)) - end - end - - return true -end -EOD }