[ingo] Adding a default rule to prefs.php?
Kevin M. Myer
kevin_myer at iu13.org
Thu Nov 3 09:55:20 PST 2005
$_prefs['rules'] would be where you name the rule and enable or disable
it. Whatever you put in there will be an array of all the available
The easiest way I've found to do this is use a fresh account in your
Horde install, login to that and create the rule and save it. Then,
pull the corresponding preference out of your preference backend and
insert it into the value array under 'rules'.
You'll still need to find a way to activate the rule, depending on what
you filtering backend you are using. We are using Sieve, so that meant
having the users go to the Ingo screen and just Save the rules, which
pushed it to their mail account on the mail server. I suppose you
could write a maintenance task to do that, for initial login as well.
Quoting amy.rich at tufts.edu:
> We'd like to add a rule to all new users' filter settings. Based on looking
> at prefs.php, I'm assuming it can be done as part of
> $_prefs['rules'], but I'm
> looking for documentation on exactly how we could make that happen.
> This rule should match the header X-Spam-Score agains the string '****' and
> save messages that match into a folder called Junk. We'd like this
> rule to be
> visible to all users by default, but not enabled by default. When the user
> enables the rule, it might ahve to create the Junk folder if it doesn't
> already exist.
> Any pointers?
> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
Kevin M. Myer
Senior Systems Administrator
Lancaster-Lebanon Intermediate Unit 13 http://www.iu13.org
More information about the ingo