On 9/12/2014 11:57 AM, Reindl Harald wrote:
Am 12.09.2014 um 17:54 schrieb Kevin A. McGrail:
On 9/12/2014 11:49 AM, Reindl Harald wrote:
Am 12.09.2014 um 16:43 schrieb Kevin A. McGrail:
On 9/11/2014 10:58 AM, Reindl Harald wrote:
not a big deal but the second line has a rounding bug
or maybe it don't round but just cut the comma part

Sep 11 16:54:46 localhost spamd[8205]: spamd: identified spam (8.0/4.5) for 
sa-milt:189.....
Sep 11 16:54:46 localhost spamd[8205]: spamd: result: Y 7 - 
BAYES_99,BAYES_999,DKIM_SIGNED....


What are you expecting?  Y 7.0?
i expect "Y 8" in the second line instead "Y 7" or "Y 8.0"

IMHO the complete value is 7.95959 or somehow like that
rounded to 8.0 and in the result line just abs() instead
round(value, 0) which would be 8

It's based on the floor because that's how it does the asterisks.  I have a 
feeling it's by design.  There are
places where rounding is counter-intuitive but not without purpose throughout SA
the problem is that grep the logs is misleading

that message was clearly blocked by the milter because of the score 8.0
grep the log for "result: Y 8" and see what tags are there for such messages
reached the lower bar of the block score don't show them

/spamass-milter -p /run/spamass-milter/spamass-milter.sock -g sa-milt -r 8.0 -- 
-s 3145728.0 --port=10027

Back on list, my fault.

I understand your issue but don't see the likelihood it will be fixed as it's not likely to be a bug but by design. You should likely just be looking for the result: Y with grep.

regards,
KAM

Reply via email to