2021-01-10 03:44:49 +00:00
|
|
|
classifier "bayes" {
|
2021-02-11 10:19:23 +00:00
|
|
|
learn_condition = 'return require("lua_bayes_learn").can_learn';
|
2021-01-10 03:44:49 +00:00
|
|
|
tokenizer {
|
|
|
|
name = "osb";
|
|
|
|
}
|
2021-02-11 10:19:23 +00:00
|
|
|
backend = "redis";
|
2021-07-30 17:33:19 +00:00
|
|
|
min_tokens = 20;
|
|
|
|
min_learns = 50;
|
2021-01-10 03:44:49 +00:00
|
|
|
new_schema = true;
|
2021-02-11 10:19:23 +00:00
|
|
|
store_tokens = true;
|
2021-01-10 03:44:49 +00:00
|
|
|
signatures = false;
|
2021-07-30 17:33:19 +00:00
|
|
|
expire = 604800;
|
2021-01-10 03:44:49 +00:00
|
|
|
statfile {
|
|
|
|
symbol = "BAYES_HAM";
|
|
|
|
spam = false;
|
|
|
|
}
|
|
|
|
statfile {
|
|
|
|
symbol = "BAYES_SPAM";
|
|
|
|
spam = true;
|
|
|
|
}
|
|
|
|
autolearn {
|
2021-07-30 13:08:22 +00:00
|
|
|
learn_verdict = true; # Learn based on message verdict
|
2021-02-11 10:19:23 +00:00
|
|
|
check_balance = true;
|
|
|
|
min_balance = 0.9;
|
2021-01-10 03:44:49 +00:00
|
|
|
}
|
|
|
|
}
|