[imp] feature request (filters: match all fields / match any
field)
Atif Ghaffar
aghaffar@developer.ch
Fri, 07 Jun 2002 22:21:36 +0200
Phew,
was much more work than a bit of fiddling.
Javascripts etc....
Anyway I have a working prototype.
http://mx2.developer.ch/horde/imp/filters.php
user: horde
pass: demo
for people interested in code.
the filters hash contains something like this
filterobject[action] = move
filterobject[folder] = INBOX.lists.ispman.cvs
filterobject[matchingrule] = all
filterobject[fields][to] = ispman-cvs@lists.sf.net
filterobject[fields][from] = aghaffar@developer.ch
etc
A rule with OR
filterobject[action] = move
filterobject[folder] = INBOX.lists.horde.imp
filterobject[matchingrule] = any
filterobject[fields][to] = imp@lists.horde.org
filterobject[fields][cc] = imp@lists.horde.org
filterobject[fields][subject] = [imp]
hope this is the correct way.
Now need to hack the actuall filtering code.
best regards.
--
Atif Ghaffar
---------------------------.
+41 78 845 31 64 ¦ tel
aghaffar@developer.ch ¦ email
http://atifghaffar.com ¦ www
8206786 ¦ icq