[ingo] editing sieve scripts

Craig White craigwhite at azapple.com
Mon Feb 7 12:43:29 PST 2005


On Sun, 2005-02-06 at 20:49 -0700, Craig White wrote:
> Ingo is configured and I have pear modules Net_Socket and Sieve
> installed.
>
> 
> Where's the missing 'edit' button?
> 
> Deactivate works fine, Activate of course can only activate an empty
> script.
> 
> What did I do wrong?
----
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;
}

Alexsandar directed me to horde_prefs table 

and I've got

a:5:{i:0;a:2:{s:4:"name";s:9:"Whitelist";s:6:"action";i:9;}i:1;a:3:
{s:4:"name";s:8:"Vacation";s:6:"action";i:8;s:7:"disable";b:1;}i:2;a:2:
{s:4:"name";s:9:"Blacklist";s:6:"action";i:7;}i:3;a:2:
{s:4:"name";s:7:"Forward";s:6:"action";i:10;}i:4;a:8:
{s:4:"name";s:11:"Fedora-
list";s:7:"combine";s:1:"1";s:10:"conditions";a:1:{i:0;a:4:
{s:5:"field";s:11:"X-
BeenThere";s:4:"type";i:1;s:5:"match";s:8:"contains";s:5:"value";s:22:"fedora-list at redhat.com";}}s:6:"action";s:1:"2";s:12:"action-value";s:12:"INBOX.fedora";s:4:"stop";s:1:"1";s:5:"flags";i:0;s:7:"disable";b:0;}}

which is cool.

Is it just best to stuff that value into the table for each new user or
is there an easier way to accomplish this?

Craig



More information about the ingo mailing list