Sieve rule: move to folder and forward

Michael Menge michael.menge at zdv.uni-tuebingen.de
Tue Dec 5 03:10:47 EST 2006


Hi,

Quoting Andrew Morgan <morgan at orst.edu>:

> On Mon, 4 Dec 2006, Muenz, Michael wrote:
>
>> Dear list,
>>
>> I'm using Horde/Ingo for creating sieve rules and have activated a   
>> rule for Spamassassin moving mails with "X-Spam-Status: Yes" to   
>> spamfolder. Also, there's a rule to forward every mail to another   
>> address. Looks like this:
>>
>> require ["imapflags", "fileinto"];
>>
>> # Spam
>> if header :comparator "i;octet" :contains "X-Spam-Status" "Yes"  {
>>   addflag "\\Seen";
>>   fileinto "INBOX/Spam";
>>   removeflag "\\Seen";
>> }
>>
>> # Forward
>> if true {
>>   redirect "backup at domain.de";
>>   keep;
>> }
>>
>>
>> My problem is, when "keep" is called, also the spam, which should   
>> be moved to "Spam" goes to my inbox again. But when setting "stop"   
>> in Spam rule, mails detected as spam which aren't, wont be   
>> delivered to backup at domain.de.
>>
>> Any ideas how to solve this?
>
> Put a line "stop;" after you file the email into the Spam folder.
> Otherwise, Sieve will continue processing later rules.
>

You get this line if you set the "Stop checking if this rule matches?"  
flag in the Spam rule in Ingo

In new Versions of Ingo this option is set by default.

Michael


--------------------------------------------------------------------------------
M.Menge                                 Tel.: (49) 7071/29-70316
Universitaet Tuebingen                  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung          mail:  
michael.menge at zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5469 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20061205/ecfa4e0c/smime-0001.bin


More information about the Info-cyrus mailing list