https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7943
Giovanni Bechis <giova...@paclan.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |giova...@paclan.it --- Comment #4 from Giovanni Bechis <giova...@paclan.it> --- Created attachment 5883 --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5883&action=edit Possible fix Delta formula is: $delta = ($self->total() + $msgscore) / (1 + $self->count()) - $msgscore; If we consider the case when: - TxRep database has 15 emails that matches ($self->count() = 15) - spam message has score 40 (spam) - calculated TxRep score is 20 (spam) - new TxRep score will be (20 + 40) / ( 1 + 15 ) - 40 = -36.25 In this case the spam message will have a total score of 40 - 36.25 = 3.75 and it won't be flagged as spam. The attached patch doesn't consider those messages in the delta calculation. -- You are receiving this mail because: You are the assignee for the bug.