On Mon, 24 Feb 2003, Dallman Ross wrote:
On Sun, Feb 23, 2003 at 10:09:40PM -0500, fleet(_at_)teachout(_dot_)org wrote:
I'm testing a variant of Dallman's "infinity shuffle" recipe. The
variable LAST is set to $= from the preceeding recipe.
Let me approach this in a different way; because I'm lost somewhere.
In the following recipes - BOTTOMSUP never gets assigned. The test
includes 2 messages with 3 "Received:" lines and two with 6. The "score"
is set properly in each instance; but the log shows:
procmail: Assigning "BTM_RCVD=from mail13.insaneprizes.com [clipped]
procmail: Assigning "RCVD_COUNT=3"
procmail: Score: -3 -3 ! "^^1^^"
procmail: No match on "^0"
(I've got the awfullest feeling I'm not understanding
* $ -$RCVD_COUNT^0 ! RCVD_COUNT ?? ^^1^^ somehow. I read that as
if RCVD_COUNT does not contain the character "1", then set the score to
-RCVD_COUNT (ie, -3 in this case.))
LOGFILE=$HOME/spamtest/spamtest.log
DEFAULT=$HOME/spamtest/
VERBOSE=on
EOL="
"
WS="[ ]"
:0 # 030114 () find bottommost "standard" Received:, and header-count
* $ 1^1 ^Received:[$WS]*\/from\>.+
{
BTM_RCVD = $MATCH
RCVD_COUNT = $=
}
:0 #030211 () find next-to-bottom Received: (using the "infinity shuffle")
* $ -$RCVD_COUNT^0 ! RCVD_COUNT ?? ^^1^^
* $ $SUPREMUM^0
* 1^0
* $ 1^1 ^Received:[$WS]*\/from\>.+
{
BOTTOMSUP = $MATCH
}
- fleet -
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail