* Jim Seavey <procmail(_at_)norseaodyssey(_dot_)com> [07-07-08 10:14]:
I am using Spambouncer as a filter and am happy with it.
But, like all things, it is not perfect. Some email that I consider spam
gets through.
I want to filter this stuff to /dev/null and have been working on the
following recipe to do that, alas, to no avail.
# Kill specific email
:0
* ^From:[ ]*(intl\.paypal\.com|\
chaseonline\.chase\.com)|\
* ^Subject:[ ]*(\<penis?\>|\
\<porn?\>|\
\<viagra?\>|\
\<watches?\>|\
\<xxx?\>|\
\<jwseavey?\>|\
\<verna?\>|\
\<joanreitz?\>|\
\<genereitz?\>)|\
* ^To:[ ]*To:
/dev/null
What is wrong with the above recipe?
# Kill specific email
:0
* ^From:.*(intl\.paypal\.com|\
### ".*" will include *anything* up to "intl....
chaseonline\.chase\.com)|\
* ^Subject:.*(\<penis?\>|\
### same here
\<porn?\>|\
\<viagra?\>|\
\<watches?\>|\
\<xxx?\>|\
\<jwseavey?\>|\
\<verna?\>|\
\<joanreitz?\>|\
\<genereitz?\>)|\
### * ^To:[ ]*To:
### you probably mean:
* ^To:[ ]$ ### no recipient including ws
### iianm, your recipe will match *only* a second "To:" after ws and
### mine will match a "To:" that is empty or contains only ws
/dev/null
You may still have a problem with "\<" as I am not quite sure of the
proper function.
as always, more knowledgable individuals may provide greater insight
and/or corrections :^)
--
Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://counter.li.org
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail