[exim] negative spam_score_int

Etusivu
Poista viesti
Vastaa
Lähettäjä: Wolfgang Breyha
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] negative spam_score_int
Hi!

I recognized that a negative spam_score_int is always off by one from the
float value. eg.
X-Spam-Score: -1.4
X-Spam-Score-Int: -13
X-Spam-Score: -0.0
X-Spam-Score-Int: 0

This is caused by the "+0.001" in spam.c:384
/* create "int" spam score */
j = (int)((spamd_score + 0.001)*10);
(void)string_format(spam_score_int_buffer, sizeof(spam_score_int_buffer),
"%d", j);

Is this intended behaviour?

Regards, Wolfgang Breyha
--
Wolfgang Breyha <wbreyha@???> | http://www.blafasel.at/
Vienna University Computer Center | Austria