procmail
[Top] [All Lists]

Re: help with scoring & size condition

2003-01-13 10:37:42

All right, I'm a little confused here.

People seem to be saying that the procmailsc(5) man page has an example of
this form:

 * anumber^0 > anothernumber

which is supposed to score anumber if the message is bigger than anothernumber
bytes and score zero otherwise.  [Of course, it doesn't work that way: unless
anothernumber is 0 (which would cause an overflow), that condition is
guaranteed to score 1 point no matter.]

Well, I'm sorry, folks, but I don't see any weighted size conditions in that
man page where x=0, and in the procmailex(5) man page I can't find any
weighted conditions at all.  I can understand coming up with that
misconception by guesswork, but I do not see why people are blaming the manual
pages.

As Dallman or Martin or somebody pointed out, this is the way to fulfill that
expectation:

ISBIG=0

:0
* > anothernumber
{ ISBIG=anumber }

and then, as a condition in a later recipe,

 * $ $ISBIG^0


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