Re: [Exim] $spam_score_int floating point error?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Christian G. Warden
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [Exim] $spam_score_int floating point error?
On Sat, Mar 27, 2004 at 01:18:54PM -0500, Stephen Gran wrote:
> 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.


Thanks, Stephen.
No wonder I couldn't find any info. I assumed it was an exiscan issue.

For the archives:
http://wiki.apache.org/spamassassin/RoundingIssues

xn