Michael Helm <helm(_at_)fionn(_dot_)es(_dot_)net> writes:
Can't the built-in variables appear in the match string?
Mr. Guenther has answered your variable expansion question. I'll offer a
handy recipe along similar lines:
I set $FROM (and some other oft-used variables) in my .procmailrc:
$FROM=`$FORMAIL -xFrom: `
:0
* $ ^Message-[Ii][Dd]:[ ]\<$FROM\>
{
LOG="SPAM: MessageID *IS* FROM.$TWITVER"
:0:
|gzip -9fc >> $MAILDIR/twits.gz
}
This tosses messages in which the messageid is the same as the spam FROM
address, a trait I've been witnessing on several spams recently.
---
Please DO NOT carbon me on list replies. I'll get my copy from the list.
Sean B. Straw / Professional Software Engineering
Post Box 2395 / San Rafael, CA 94912-2395