[ingo] editing sieve scripts

Liam Hoekenga liamr at umich.edu
Mon Feb 7 14:49:01 PST 2005

>> Using sieve...
>> What I want to do is to have some default rules for each new user...
>> i.e.
>> if header :contains "X-Spam-FLAG" "YES" {
>>  fileinto "INBOX.SPAMBOX";
>>  stop;
>> Is it just best to stuff that value into the table for each new user or
> Yes.

You could also change the default value for $_prefs['rules'] in
ingo/config/prefs.php.  We'd considered doing something similar, where we'd
place messages with the X-DSPAM-Result into the DSPAM folder.  I was able to
create default rules by adding to the "rules" pref:

$_prefs['rules'] = array(
     'value' => 
a:3:{i:0;a:3:{s:4:"name";s:9:"Whitelist";s:6:"action";i:' . INGO
';s:7:"disable";b:1;}i:1;a:3:{s:4:"name";s:9:"Blacklist";s:6:"action";i:' .
. ';s:7:"disable
     'locked' => false,
     'shared' => false,
     'type' => 'implicit'


More information about the ingo mailing list