[imapfilter-devel]Filter generation

Mario Strasser mario.strasser at zhwin.ch
Mon Oct 28 17:53:01 EET 2002


Hi,

Our Windows 2000 Exchange mail server at the University 
seems to have troubles with the filter roules generated by imapfilter 
if they include more than 2 items. For example
SEARCH (OR X Y) works whereas SEARCH (OR X Y Z) does not.

In RFC 2060 section 6.4.4 the OR command is defined as
OR <search-key1> <search-key2>
thus I had to modify the generate_filter_or() function in such a way
that it adds extra brackets and brings the filter to the needed form: 
SEARCH (OR X (OR Y Z)).

I though this may be of general interest and therefore attached the
corresponding patch. Note that the generate_filter_and() function
is not modified by the patch.

Regards,
Mario

btw
Please send a copy of your comments - if there are any -
direct to me as I'm not subscribed to the imapfilter list.
Content Security by MailMarshal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: brack.diff
Type: text/x-diff
Size: 1451 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20021028/a278ef23/attachment.diff>


More information about the Imapfilter-devel mailing list