Re: Sieve, a problem with if/elsif/else

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@srv1.domain"] {
> fileinto "INBOX/BounceError/srv1"; }
> elsif address :contains ["From"] ["MAILER-DAEMON@srv2.domain"] { fileinto
> "INBOX/BounceError/srv2";
> }
> elsif address :contains ["From"] ["MAILER-DAEMON@srv3.domain"] { fileinto
> "INBOX/BounceError/srv3";
> }
> #   elsif address :contains ["From"] ["MAILER-DAEMON@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.


----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux