procmail
[Top] [All Lists]

Getting the MATCH

2008-07-21 20:47:31
I want to save the match from the following recipe, but this obviously isn't working. Any ideas of a way to fix it? I know I need to use the \/ operator, but I don't know where to put it in this type of expression.

FGREP=/bin/grep
IPBLACKLIST=/home/peloruso/ipblacklist
FORMAIL = /usr/bin/formail
FROM=`$FORMAIL -x"From" -x"From:" -x"Reply-To:" -x"Received:" -x"Return-Path:"`

:0fw:ipblacklist.lock
* ? (echo "$FROM" | $FGREP -i -f $IPBLACKLIST)
| $FORMAIL -A "X-IP-Blacklist: Mail originated from a previous source of spam--$MATCH"

Skip

--
Get my PGP Public key here:
http://pelorus.org/skip(_at_)pelorus(_dot_)org_public_key(_dot_)asc

____________________________________________________________
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

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