MythicSalt/states/email/dovecot/sieve-before.d/01-spam.sieve

14 lines
236 B
Sieve

require ["fileinto","mailbox"];
# Handle rspamd output
if header :contains "X-Spam-Status" "Yes"
{
fileinto :create "Spam";
stop;
}
if exists ["X-Spam-Bar"]
{
fileinto :create "Spam.ToClassify";
stop;
}