public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Rspamd] Fix bayes config (#6000)
* [Rspamd] Fix bayes config Add hint about classifier name, and add missing learn_condition * Update statistic.conf
8753ea2b
data/conf/rspamd/local.d/statistic.conf | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Diff
diff --git a/data/conf/rspamd/local.d/statistic.conf b/data/conf/rspamd/local.d/statistic.conf
index 1ca3e082..baa3f1c2 100644
--- a/data/conf/rspamd/local.d/statistic.conf
+++ b/data/conf/rspamd/local.d/statistic.conf
@@ -1,12 +1,14 @@
classifier "bayes" {
+ # name = "custom"; # 'name' parameter must be set if multiple classifiers are defined
+ learn_condition = 'return require("lua_bayes_learn").can_learn';
+ new_schema = true;
tokenizer {
name = "osb";
}
backend = "redis";
min_tokens = 11;
min_learns = 5;
- new_schema = true;
- expire = 2592000;
+ expire = 7776000;
statfile {
symbol = "BAYES_HAM";
spam = false;