procmail
[Top] [All Lists]

A few rule questions

2003-12-14 07:04:40

Hello all,

I primarily use Mailfilter as an extension to Fetchmail to filter out spam, but
it does have it's limitations, mainly that if it is "called" when my POP mailbox
is locked during delivery, it cannot delete the spam. It is about 90%
successful, nonetheless.

I would like to use Procmail to deal with the few spam mails that sneak through,
and there are a few that I'm sure would be very simple to snag, but I am not so
good with regular expressions, so I am hoping I can get some input on these
rules I am trying to develop.

One that would *really* help is a rule that I am trying to adapt from my
Mailfilter rules. It is supposed to catch any mail which is addressed to more
than 2 .sympatico.ca addresses:

^(To|Cc):(.*sympatico\.ca){3}

I am told, and evidence bears this out, that Procmail does not "grok" the {3},
so how would I go about modifying this rule so that it would be understood by
Procmail?

Another is this one:

^From: <?[^[:digit:] \"]+[[:digit:]]+[^[[:digit:] \"]*@

which is intended to catch mail addresses with a bunch of numbers in them.

Finally, I have been getting a lot of this lately (body):

Cash in On Atm Traffic
Make $Money$ 24-7-365

where the subject is just a single random letter.

I would imaging it would be simplest to filter on the subject, snagging all mail
which has as it's subject only a single letter, but I would also be
interested in how to catch it by body as well...I believe this would be
something like:

:0 B
*atm\.traffic

but I tried that and it did not work.

Any tips on these few rules?

Many thanks.

-- 
JoeHill ++ ICQ # 280779813
Registered Linux user #282046
Homepage: www.orderinchaos.org
+++++++++++++++++++++++++++
"When the going gets weird, the weird turn pro."
-- Hunter S. Thompson

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>