Re: Sieve rule: move to folder and forward

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

 



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@xxxxxxxxx";
   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@xxxxxxxxxx

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.

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

[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