On Sun, May 19, 2002 at 10:47:02AM -0400, Greg Fitzgerald wrote:
I am fairly knew to procmail but quickly falling in love with it. Could
someone give me a example of how I could take anything :0: * ^FROM: and
then grep a flat text file with a list of email addresses and or
hostnames and then pass them to $SPAM?
A fairly standard thing to do, covered a number of times in the list
archives. For additional spam control recipes, check the procmail docs.
For reference, there's no no "magic" ^FROM that is akin to ^TO or ^TO_
but your particular example will work because procmail's checks are not
case sensitive. Off the top of my head, you could use something like:
:0:
* ^From: \/.+
* ?$ echo "$MATCH" | /usr/bin/grep -qf /path/to/badfromlist
$SPAM
The first '$' may be redundant, depending on your SHELLMETAS.
p
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Development / Abuse / Whatever vox: +1 416 598-0000
it.canada http://www.it.ca/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail