bundlewrap/bundles/dovecot/files/spam-global.sieve
Franziska Kunsmann f56703df2e
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
bundles/dovecot: filter X-Spam-Status, not X-Spam-Flag
The latter is YES even if the overall score is very low because of
IP allowlisting.
2022-03-12 10:24:06 +01:00

11 lines
209 B
Sieve

require ["fileinto", "imap4flags"];
if header :contains "X-Spam-Status" "Yes" {
setflag "\\seen";
fileinto "Junk";
}
if header :contains "X-Spam" "Yes" {
setflag "\\seen";
fileinto "Junk";
}