Re: [Exim] $spam_score_int floating point error?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Stephen Gran
Date:  
À: exim-users
Sujet: Re: [Exim] $spam_score_int floating point error?
On Fri, Mar 26, 2004 at 07:57:20PM -0800, Christian G. Warden said:
> I'm using exiscan to reject messages with a spam score over 4.5.
>
>   deny condition = ${if <{$message_size}{MAX_SCAN_SIZE}{1}{0}}
>       spam = nobody:true
>       condition = ${if >{$spam_score_int}{45}{1}{0}}

>
> Sometimes, a message with a score of 4.6 will get through. 4.7 and
> above always seems to get blocked, so I'm guessing that when $spam_score
> is 4.6, $spam_score_int is sometimes 45 rather than 46.
> Has anyone else noticed this behaviour?


It's in spamassassin, not exim. Spamassassin reports a score of 4.6 for
a message that scored 4.501, for instance. $spam_score_int is still 45
in this case. There have been long threads on the spamassassin-users
list about the pros and cons of rounding up versus rounding down, and
I'm sure a quick google search will turn them up if you're interested in
the details.

--
--------------------------------------------------------------------------
|  Stephen Gran                  | Anyone who considers protocol           |
|  steve@???             | unimportant has never dealt with a cat. |
|  http://www.lobefin.net/~steve | -- R. Heinlein                          |

--------------------------------------------------------------------------