Op 19-1-2017 om 10:43 schreef Thomas Leuxner:
* Stephan Bosch <step...@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" "u...@example.com"
        {
        removeflag "\\Flagged $MailFlagBit1";
        fileinto "Trash";
        addflag "\\Flagged $MailFlagBit1";
        keep;
        }

Couldn't reproduce this with v2.3.devel yesterday (i.e. no flags set for the Security mailbox and all flags set for the message in INBOX), but I will try later with some older version.

Regards,

Stephan.

Reply via email to