Sieve Filtering: Difference between revisions

(Restore simple spam folder use)
(Handle bad spam)
require ["fileinto","mailbox"];
if exists "X-Spam-Flag" {
if header :is "X-Spam-Flag" "YES" {
if exists "X-Spam-Bar" {
fileinto :create "spam";
# 20 OR MORE +
stop;
if header :contains "X-Spam-Bar" "++++++++++++++++++++" {
}
# Can't reject, not supported
fileinto :create "bad-spam";
stop;
}
}
fileinto :create "spam";
stop;
}
}