You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2008/09/17 18:17:52 UTC

[Spamassassin Wiki] Update of "RoundingIssues" by SidneyMarkowitz

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by SidneyMarkowitz:
http://wiki.apache.org/spamassassin/RoundingIssues

The comment on the change is:
Change description of score rounding to match what we actually ended up doing

------------------------------------------------------------------------------
  == Why do the message score and the number of stars show something different? ==
  
- Upgrade to 3.0 and they shouldn't anymore.  This was a common question and was filed as a [http://bugzilla.spamassassin.org/show_bug.cgi?id=2607 bug] and fixed.
+ The message score is computed to three decimal places and then displayed rounded to the nearest tenth. An exception is made in the case that the score would round up to the required spam threshold score. In that one case to avoid a confusing message, the score is rounded down to a tenth. The number of stars is always rounded down to an integer so that a score that is below the spam threshold will never result in more than the spam threshold number of stars.
  
- If the score of a spam is 4.995, and required hits are 5.0, the message's headers should show:
+ If the score of a message is 4.995, and required score is 5.0, the message's headers should show:
  
  {{{
  X-Spam-Level: ****
- X-Spam-Status: No, hits=4.9 required=5.0
+ X-Spam-Status: No, score=4.9 required=5.0
  }}}
  
- This rounding down of the spam hits (to the nearest 0.1) and of the stars (to the nearest integer) will hopefully be a more intuitive result.
+ If the score of a message is 8.995, and required score is 5.0, the message's headers should show a score of 9.0 but only 8 stars:
  
+ {{{
+ X-Spam-Level: ********
+ X-Spam-Status: Yes, score=9.0 required=5.0
+ }}}
  
  
  == Why do the points of individual rules in the content analysis not add up to the correct point total? ==