At 21:57 23/11/2003 +0000, Alan Munday wrote:

Just had a mail in which had different *'s and score. I was expecting these
to be the same as I egrep the file and count the stars in post
processing.....


X-Spam-Level: **** X-Spam-Status: No, hits=5.0 required=5.0 tests=BAYES_20,HTML_30_40, HTML_MESSAGE,HTML_RELAYING_FRAME,MICROSOFT_EXECUTABLE, MIME_HTML_NO_CHARSET,MIME_HTML_ONLY,MIME_HTML_ONLY_MULTI, MIME_SUSPECT_NAME,OACYS_CONS_6,RM_rb_BODY,RM_rb_BREAK,RM_rb_HTML autolearn=no version=2.60

Is there a simple explanation for this?

Yep, the score is calculated to (I think) 3 decimal places, but for display purposes it is rounded to 1 decimal place. So the score was something like 4.95 which is less than 5.


Is there a better way, e.g. does SA set an exit code with the hit value in?

Better way than what ? Checking for X-Spam-Status: Yes or X-Spam-Flag: YES is the correct way to tell if a message has exceeded the threshold...while counting the stars is also ok for seeing if a message exceeded an arbitary threshold. (Remember though that since 2.60 it will never add more than 50 stars regardless of the score being higher than that)


Regards,
Simon



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to