I’ve started collecting custom sieve rules for imap for all the vacation email replies we get, here’s my script if anyone is interested:
require ["copy","fileinto"];
# rule:[sa]
if header :contains "x-spam-level" "*****"
{
fileinto "myspam";
stop;
}
# rule:[postmastercrap]
if anyof (header :contains "from" "MAILER-DAEMON@", header :contains "from" "postmaster@")
{
fileinto "pmcrap";
stop;
}
# rule:[vacation]
if anyof (header :contains "x-qq-holidayreply" "true",
header :contains "subject" "Automatic reply",
header :contains "subject" "Automatische Antwort",
header :contains "subject" "Vacation reply",
header :contains "subject" "Réponse automatique",
header :contains "subject" "Automatisch antwoord",
header :contains "subject" "自动回复",
header :contains "subject" "Delivery Failure",
header :contains "subject" "Holiday Re",
header :contains "subject" "Out of Office",
header :contains "subject" "Abwesenheitsnachricht",
header :contains "subject" "Respuesta automática",
header :contains "subject" "Autosvar:",
header :contains "X-MDAutoResponse" "1",
header :contains "subject" "Abwesenheitsnachricht:")
{
fileinto "pmcrap";
stop;
}