mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-02-26 08:53:03 +08:00
11 lines
366 B
Sieve
11 lines
366 B
Sieve
|
|
# This script should be used on authenticated SMTP sessions only
|
|
let "message_id" "header.Message-ID";
|
|
|
|
if eval "!is_empty(message_id)" {
|
|
eval "lookup('spamdb/id-insert', message_id)";
|
|
|
|
if eval "lookup('spam/options', 'AUTOLEARN_REPLIES')" {
|
|
eval "bayes_train('spamdb/bayes-train', thread_name(header.subject) + ' ' + body.to_text, false)";
|
|
}
|
|
}
|