Sieve, a problem with if/elsif/else

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

 



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.

-- 
Regards, Sergey
----
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