procmail
[Top] [All Lists]

Re: Avoiding unnecessary call

2001-01-06 16:49:45
From guenther(_at_)gac(_dot_)edu  Sat Jan  6 17:49:11 2001

"Dallman Ross" <dman(_at_)nomotek(_dot_)com> writes:
...
But anyway, I did see some logs that implied that conditions kept
going, kept being checked, even after an "$INFINITY" one had
been triggered in a scored recipe.  Weird.

Several things may be going on:

1) Procmail skips the rest of the _scoring_ conditions when it hits
   positive infinity.  Non-scoring conditions will still be checked
   (until one fails)
2) It only skips when the cumulative score is infinite.  If the score
   was negative when you added $INFINITY then the sum will be
   insufficient to cause skipping
3) Something might have been rounded slightly when converted from floating
   point to integer or vice versa (this is unlikely to be the problem)
4) With procmail versions before 3.15, if you're on a platform where
   'long' is 64bits (e.g., alpha) then infinity is really
   9223372036854775807.

Ah.  Number 4 is it!  Thanks again.  And - Alpha it is.

-- 
Netcom has imploded.  Please now use NOTnetcom.com for mail.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ex-Netcommies:  Mail "forwards" for free forwarding service!
NOT affiliated with EarthLink, Inc.'s Netcom brand identity.
_______________________________________________
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>