- Stephan Bosch <stephan@rename-it.nl> 2017.01.19 10:32:
Could you provide a more detailed example?
Sure. Personal script v
/var/vmail/domains/leuxner.net/tlx/.dovecot.sieve:
require ["include","copy","fileinto","imap4flags","vacation"]; include :global "global";
--
Global script referenced v
/var/vmail/conf.d/leuxner.net/sieve/global.sieve:
require ["fileinto","imap4flags","duplicate"];
#Newsletters
if header :contains "List-Id" "debian-security-announce.lists.debian.org" { removeflag "\\Flagged $MailFlagBit1"; fileinto ":public/Newsletters/Debian/Security"; addflag "\\Flagged $MailFlagBit1"; keep; }
-- Basically it is reproducible with the same stanza we used before by putting this in the included script:
#Test if address :is "From" "user@example.com" { removeflag "\\Flagged $MailFlagBit1"; fileinto "Trash"; addflag "\\Flagged $MailFlagBit1"; keep; }
Regards Thomas