mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-02-26 17:04:05 +08:00
11 lines
341 B
Sieve
11 lines
341 B
Sieve
|
if eval "!t.SPAM_TRAP && !t.TRUSTED_REPLY" {
|
||
|
let "bayes_result" "bayes_classify('spamdb/bayes-classify', body_and_subject)";
|
||
|
if eval "!is_empty(bayes_result)" {
|
||
|
if eval "bayes_result > 0.7" {
|
||
|
let "t.BAYES_SPAM" "1";
|
||
|
} elsif eval "bayes_result < 0.5" {
|
||
|
let "t.BAYES_HAM" "1";
|
||
|
}
|
||
|
}
|
||
|
}
|