[imapfilter-devel] Filter groupings

Ryan Hayle hackel at walkingfish.com
Fri Apr 2 05:25:54 EEST 2004


I'm trying to get the equivalent of:
if new and (from or header or to)
using:

filter ryan
   new
   from xx
   or header received xx
   or to xx
action move Spam

This doesn't seem to work, however.  The command it runs is:

C: 1005 SEARCH ALL NEW OR (FROM "xx") OR (HEADER "received" "xx") (TO "xx")

Which I would guess implies:
if (new or from or header) and to

What is the proper way to do this?  Is the new mask even necessary?  I 
figured it would be faster, since I don't need to filter all ~800 emails 
in my inbox, but merely those which are unread.

Also, with all the pseudocode examples used to explain your syntax, why 
not actually USE the pseudocode?  I think if/then/else statements are 
pretty simple for most people to understand, but at the very lease allow 
parentheses or brackets in the config file to be more clear.  Just a 
suggestion...

Thanks,
Ryan

Please CC me.




More information about the Imapfilter-devel mailing list