[Dovecot] sieve rules processing

Tom Hendrikx tom at whyscream.net
Thu Jul 30 11:32:20 EEST 2009


Nikita Koshikov schreef:
>>
> This is my current rule list:
> 
> require ["fileinto","envelope","copy"];
> # rule:[redirect]
> if anyof (true)
> {
>     redirect :copy "alice at domain.com";
> }
> # rule:[Cron]
> elsif anyof (header :contains "Subject" "Cron")
> {
>     fileinto "INBOX/Cron";
> }
>  

You are using a if/elseif/else statement. When the if clause (which is
always true) is matched, the stuff in the elsif/else clauses is discarded.

You'll need to use 2 separate if statements to make this work.

--
Regards,
	Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20090730/a71500fd/attachment.bin 


More information about the dovecot mailing list