Re: Scoring msg size riddle

"David W. Tamkin" <[email protected]> Tue, 23 May 2017 12:35:31 -0500
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
Andreas,

> Could someone enlighten me as to why
>
>   :0
>   * 100^2  > 2000
>   { LOG=3D"> 2000 score =3D $=3D $NL" }
>
> gives a score of 17 for a message of 830 bytes,
> and 124 for a message of 2233 (sizes according to LOGABSTRACT).

That's correct.  See the procmailsc(5) manual page.  A weighted =

greater-than condition scores W=D7(M/L)^X.  {A weighted less-than condition =

scores W=D7(L/M)^X.]  You hve W=3D100, X=3D2, L=3D2000, and greater-than.  =
So when =

M=3D830, 100=D7(830/2000)^2 =3D 17.2225; when M=3D2233, 100=D7(2233/2000)^2=
 =3D =

124.657225.  The $=3D variable rounds down to the whole integer.

> I wonder if I misunderstood something essential or whether there's a
> bug in the code (where I haven't looked yet) or its documentation.

The code is working as promised.

Now, the real question: what were you expecting?  What results were you =

trying to get?

(Please send any off-list replies to [email protected], or reply on list.)