helper scripts for purelymail
you can manage sieve scripts here: https://purelymail.com/manage/accountSieve
moves zendesk emails to the junk tab
require ["fileinto", "imap4flags"];
if allof (
header :contains "X-Zendesk-Priority-Mail" "Verification Email",
header :contains "Message-ID" "_sprut@zendesk.com",
header :contains "Auto-Submitted" "auto-generated"
) {
addflag "\\Seen";
fileinto "Junk";
stop;
}
rejects any zendesk spam email from reaching in the first place. saves credits but may encounter false positives here and there
require ["reject"];
if allof (
header :contains "X-Zendesk-Priority-Mail" "Verification Email",
header :contains "Message-ID" "_sprut@zendesk.com",
header :contains "Auto-Submitted" "auto-generated"
) {
reject "Zendesk spam";
stop;
}