[ingo] Adding a new "special" rule?

Darrell Budic budic at onholyground.com
Mon Feb 25 18:23:36 UTC 2008


I want to add a new special rule to ingo for spam filtering in Sieve,  
so my users don't delete the spam filter rule I've defaulted into  
their rule sets when they use Ingo to add a vacation rule or  
whitelist. It looks like I need to write a new .php file and then  
integrate it into filters.php, but I wanted to ask here first to be  
sure there wasn't a simpler way?

Here's what I'm trying to have show up in the rules list as "Filter  
Spam" or some such title:

require "fileinto";

# Junk Mail
if header :comparator "i;ascii-casemap" :contains "X-Spam-Warning"  
"This message may be SPAM"  {
     fileinto "Junk";
     stop;
}


Thanks!

   -Darrell


More information about the ingo mailing list