[imapfilter-devel] Filter groupings
Cedric Pradalier
cedric.pradalier at inrialpes.fr
Fri Apr 2 11:07:16 EEST 2004
I'm new to this list, but after reading the config sample,
I would add a and flag :
filter ryan AND
new
from xx
or header received xx
or to xx
action move Spam
On Thu, 01 Apr 2004 20:25:54 -0600,
Ryan Hayle gracefully wrote:
>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.
>
>
--
Cedric
"[Of course] I'm French! Why do think I have this outrageous
accent, you silly king-a?!" Monty Python and the Holy Grail
More information about the Imapfilter-devel
mailing list