View Single Post
Old 11 Mar 2015, 07:33 AM   #8
n5bb
Intergalactic Postmaster
 
Join Date: May 2004
Location: Irving, Texas
Posts: 8,930
Quote:
Originally Posted by Terry View Post
Surly you have to take out the stop; for the rest of the rules to work ?
No, if you take out the stop it will not work correctly. You want to ignore any later Sieve steps if the test passes and the message is discarded, and only execute later steps if the test fails and the message is not discarded. For example, the normal spam filter files bad messages into the Junk Mail folder, then stops. Messages which have a low spam score are ignored by this code:
Code:
if  header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"] ["5"]  {
  fileinto "INBOX.Junk Mail";
  stop;
}
Bil
n5bb is offline   Reply With Quote