Sieve, a problem with if/elsif/else

Eric Luyten Eric.Luyten at vub.ac.be
Mon Aug 31 03:44:49 EDT 2015


On Mon, August 31, 2015 9:22 am, Sergey wrote:
> Hello.
>
>
> I have a strange problem. I use a filter
>
>
> if address :contains ["To"] ["bounceerror@"] { if    address :contains
> ["From"] ["MAILER-DAEMON at srv1.domain"] {
> fileinto "INBOX/BounceError/srv1"; }
> elsif address :contains ["From"] ["MAILER-DAEMON at srv2.domain"] { fileinto
> "INBOX/BounceError/srv2";
> }
> elsif address :contains ["From"] ["MAILER-DAEMON at srv3.domain"] { fileinto
> "INBOX/BounceError/srv3";
> }
> #   elsif address :contains ["From"] ["MAILER-DAEMON at srv4.domain"] {
> #      fileinto "INBOX/BounceError/srv4";
> #   }
> else { fileinto "INBOX/BounceError"; }
> }
>
>
> Messages from srv4 remain in the inbox instead of move to
> BounceError. Messages from srv4 are moved to INBOX/BounceError/srv4
> if uncomment lines about srv4.
>
> Why "else fileinto" doesn't work ? Discovered in 2.4.17, reproduced
> in 2.4.18.


Sergey,


Did you define "INBOX/BounceError" as a mailbox ?
This is not implied by the fact that it is a hierarchy.
Some IMAP clients may create it in the process of creating
sub-mailboxes, but certainly not all.


Regards,
Eric Luyten, Computing Centre VUB/ULB.




More information about the Info-cyrus mailing list