[exim] negative spam_score_int

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Wolfgang Breyha
Date:  
À: exim-users
Sujet: [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