[imapfilter-devel]moving only unseen messages?
Lefteris Chatzibarbas
lefcha at hellug.gr
Wed Oct 2 20:14:01 EEST 2002
On Wed, Oct 02, 2002 at 11:57:39AM -0400, Matej Cepl wrote:
> Hi,
>
> I have created this simple anti-spam measure in my .imapfilterrc:
>
> [...]
>
> I guess I would need something like:
>
> if unseen && (header X-AntiAbuse "" || header X-YahooFilteredBulk "" \
> header Received superonline.com || subject FREE)
> {
> move spam;
> }
>
> (to use quasi-C notation).
>
> How should I do it?
>
> [...]
filter spam and
mask unseen
mask header X-AntiAbuse ""
mask or header X-YahooFilteredBulk ""
mask or header Received superonline.com
mask or subject FREE
action move spam Subject
To clarify(?) things:
if A && (B || C) && (D || E || F) && G then ...
filter foo and
A
B
or C
D
or E
or F
G
action ...
if A || (B && C) || (D && E && F) || G then ...
filter foo or
A
B
and C
D
and E
end F
G
action ...
More information about the Imapfilter-devel
mailing list