On Tue, May 25, 1999 at 11:51:55AM -0700, John D. Hardin wrote:
On Mon, 24 May 1999, Gregory Sutter wrote:
procmail: Assigning "JFBODYCHK=( $JFBRM@|$JFBAPOL $JFBPOSS
intrusion|$JFBMAIL br
ought to you by ProBulk|$JFBMAIL is never sent unsolicited|$JFBREMV from
$JFBPOS
S ($JFBMAIL )?list|$JFBREMV,? click|$JFBRM (as|for|in|on) (a |the
)?['"]?subject
|$JFBRM from $JFBPOSS $JFBMAIL|$JFBVIA $JFBPOSS $JFBRLIST|$JFBYOU
(received|are
receiving) this $JFBMAIL because|$JFBYOU (will not|won't|wont)
(get|receive|reci
eve) this $JFBMAIL again|$JFBYOU been (carefully )?selected to
receive|$JFBYOU r
eceived this $JFBMAIL|${JFBCARD}.*${JFBCARD}|($JFBRM)($JFWS)(me )?(typed
)?(as|f
or|in|on) ((a|the) )?['"]?subject|(${JFBADJ}+|$JFBPOSS) adult
(web)?site|([0-9,.
How do you have that line quoted in your .procmailrc file? Variables
will be expanded if inside double quotes but not if within single
quotes.
It isn't quoted in the .procmailrc file. It is in the external file that
was 'cat'ted on the preceding line. Following up on another tip, I tried,
instead of just VAR=`cat foo`, VAR=`sh -c "expr cat foo"` but that didn't
work either.
Here is the recipe:
JFBODYCHK=(`sh -c "eval cat $JFDIR/jf-bodychk"`)
:0HB
* $ ${JFBODYCHK:-$JFNOMATCH}
* < 60000
{
:0B
* $ ()\/($JFBODYCHK)
{ JFMATCH="$JFSEC: $MATCH" INCLUDERC=$JFDIR/junkfilter.match }
}
Greg
--
Gregory S. Sutter The best way to accelerate Windows
mailto:gsutter(_at_)pobox(_dot_)com is at 9.8 m/s^2.
http://www.pobox.com/~gsutter/
PGP DSS public key 0x40AE3052