procmail
[Top] [All Lists]

Re: Scoring problem

2003-03-01 06:09:07
On Fri, Feb 28, 2003 at 10:23:48PM -0500, fleet(_at_)teachout(_dot_)org wrote:

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"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Ah.  You don't have $SUPREMUM defined anywhere!

This took me too long to figure out.  I couldn't see what was wrong,
because your recipes are near carbon copies of my production ones.

 SUPREMUM = 2147483647         # this one's not oversaturated like my $GO


(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

"Does not contain" is too loose as language to describe something
anchored explicitly on both ends.  "Is not" is more precise to
describe what is happening.  (To procmail, we're comparing two
strings.  They happen to be digits to us, but to procmail they're
just another string.  However, in the scoring part of the syntax,
they are, indeed, numbers to procmail.)

I'll run my test harness (which incorporates my production rc) on
your message, for grins:

 1:01pm [~/Mail] 302[0]> rctest procmail y | grep BOTTOMS | par 
procmail: Assigning "BOTTOMSUP=from fleet1.paxp.com
(IDENT:root(_at_)[206(_dot_)225(_dot_)22(_dot_)58]) h213OlJM007799 for
<procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE>; Sat, 01 Mar 2003 04:24:49 
+0100 (MET)"

-- 
dman

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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