question about sieve "discard"

Andreas Hasenack andreas at conectiva.com.br
Wed Apr 27 14:46:49 EDT 2005


A friend of mine had these rules (cyrus-imapd-2.2.12):

------8<-------
if ....

elsif ....

elsif header :contains "From" "someone at somewhere" {
	discard;
}

if ...
(script continues)
------8<-------

Note how the if/elsif structure is broken and a new if statement begins
later on. That was a copy&paste error (the second "if" should have been
"elsif" to continue the case-like structure).

The interesting thing is that a message from "someone at somewhere"
survived the discard. Is that because there should be a "stop;" after
the discard action? It matched some other rule down the road in the
second "if" structure.


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list