procmail
[Top] [All Lists]

Re: Filter

2002-05-10 07:35:29
Monah Baki <mbaki(_at_)infoa(_dot_)com> writes:

Hi All,

this is my filter program in my .procmailrc

SHELL=/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin
:0 HB
* ^Content-Disposition: attachment;
*filename=".*\.(exe|vbs|shs|com|pif|bat|scr)"
/dev/null

:0
* ^From.*(@adm.cheetahmail.com|@ediets.com|@flowgo.com|@2funnytaf.com|\
@quickinspirations.com|@*.freelotto.com|@*.beliefnet.com)
/dev/null

However, I'm still getting spam from freelotto.com and beliefnet.com,
is the wildcards placement wrong?

The syntax is sort of backwards 
  @*.  =  zero or more @ followed by any single character except
  newline.

So it would miss anything that looked like @some.beliefnet.com
or @beliefnet.com

I think you may have wanted `.*'
You didn't show the actual names you are trying to catch, so this may
still be lacking :

(If the names look like @beliefnet.com @freelotto.com then you may
just leave out the `.*' in those two.

^From:.*@(adm\.cheetamail|ediets\.|flowgo\.|2funnytaf\.|\
quickinspirations\.|.*freelotto\.|.*belierfnet\.)com

(Note untested and non-expert.. may require remodeling)
The last two should catch things like:
@some.beliefnet.com or @beliefnet.com

Above example is only for giving an alternate approach and may require
experimentaion to get right. 

_______________________________________________
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>