procmail
[Top] [All Lists]

Re: A little cosmetic motion about score

2002-09-27 21:04:29
Udi Mottelo <uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il> writes:
      I see too mutch the the "black magic number" 2147483647.

      Not all the machines have the same INT_MAX.  I suggest that
      procmail will include the INT_MAX as one of its defult environment
      variabls.

Since version 3.15, procmail has made sure that the maximum score
is 2^31-1 == 2147483647, period.  It doesn't matter what INT_MAX (or
LONG_MAX) is on your platform, 2147483647 is the maximum score.  So,
unless you're running a version of procmail older than 3.15 on a platform
were long is bigger than 32-bits, you don't have anything to worry about.

But if remembering that number is annoying, just use something bigger and
more memorable, such as 9876543210.  Indeed, SmartList has used that value
in its ORing recipes for year and years.  No need to be exact, just big.


Philip Guenther
_______________________________________________
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>