You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ketanbparekh <ta...@yahoo.com> on 2007/07/03 20:07:34 UTC

Question regarding execution of sieve scripts

Hi all,

I have a question regarding execution of seive script. Below is an example
of sieve script.


if header :contains ["To"] ["user3@a3-ketanp"] 
{ 

        redirect "user2@a3-ketanp"; 
} 

if header :matches "Subject" ["*money*","*Viagra*"]{ 

        reject "Don't send Spam Mails."; 
        
} 

if header :contains "Subject" ["*gozilla*","*Viagra*","*spam*","*virus*"]{ 

        redirect "user4@a3-ketanp"; 
} 

if header :contains "Subject" ["*spiderman*","*Viagra*","*spam*","*virus*"]{ 

        forward "user4@a3-ketanp"; 
} 



1) I a mail contains subject Viagra then action reject is invoked since it
is first but sieve script also contains action redirect so if the subject
contains Viagara then Does sieve script should also invoke redirect after
reject action is invoked. ?

2) Can more than one actions be invoked for a mail. Eg if one action is
invoked then other actions are not invoked?





thanks, 
Ketan.B.Parekh 


-- 
View this message in context: http://www.nabble.com/Question-regarding-execution-of-sieve-scripts-tf4020019.html#a11417721
Sent from the James - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org