[dev] Filters match all/any

Jan Schneider jan@horde.org
Sat, 8 Jun 2002 14:13:45 +0200


Zitat von Atif Ghaffar <aghaffar@developer.ch>:

> Hi Dev group,
> 
> I have made some changes to the imp filters.php and mailbox.php
> that allows to have filters with and / or rules set.
> See http://marc.theaimsgroup.com/?l=imp&m=102348133720175&w=2
> 
> I have the code working:
> Adding/modifying/deleting filters
> applying filters with/without sieve
> 
> 
> I want to know if you are interested in this approach.
> If yes, I can make a patch against HEAD and if thats not the approach 
> you want to take, I can release the patch for the 3.1RC3.
> 
> If you want to take a peek. (grep for Atif in the phps files)
> http://mx2.developer.ch/horde/imp/filters.phps
> http://mx2.developer.ch/horde/imp/mailbox.phps
> (ignore the sieve part)
> http://mx2.ispman.net/horde/imp/templates/filters/javascript.inc
> http://mx2.ispman.net/horde/imp/templates/filters/manage.inc
> http://mx2.ispman.net/horde/imp/templates/filters/list.inc

That looks pretty interesting though I don't understand why it's necessary
to convert the the old filter format to the new one. You can keep it as it
is and let 'matchingrule' default to 'any' anywhere it is accessed.

A patch would be nice.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft