Re: Sieve fileinto copies messages instead of moving them

2019-03-07 Thread Dauser Martin Johannes via dovecot
Micheal, just for your information: "stop;" stops the whole script at this very line, which means no other rule will be applied on this message anymore. Most of the time this is desired. Otherwise "elsif" (and "else" as a catch-all) is your friend. require ["fileinto"]; # rule:[check if either

Re: Sieve fileinto copies messages instead of moving them

2019-03-06 Thread Helmut K. C. Tessarek via dovecot
On 2019-03-07 02:52, Michael Goth via dovecot wrote: > require ["fileinto"]; > # rule:[SPAM] > if header :contains "subject" "SPAMSPAM" > { > fileinto "SPAM"; > } > # rule:[SPAMSPAM] > if header :contains "subject" "SPAM" > { > fileinto "MaybeSPAM"; > } > > > But when I receive a message

Sieve fileinto copies messages instead of moving them

2019-03-06 Thread Michael Goth via dovecot
Hi, we're running Doveocot 2.3.4.1 with Pigeonhole, from repo.webflow.org. As far as I understand the RFC for 'fileinto', the following Sieve script should move a message either into the folder "SPAM" or "MaybeSPAM": require ["fileinto"]; # rule:[SPAM] if header :contains "subject" "SPAMSPAM