Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1870/Outlook2000
Modified Files:
addin.py
Log Message:
Fix a bug that prevented the "show clues" message working with messages that
hadn't
been classified.
Index: addin.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/addin.py,v
retrieving revision 1.142
retrieving revision 1.143
diff -C2 -d -r1.142 -r1.143
*** addin.py 6 Dec 2004 18:04:34 -0000 1.142
--- addin.py 20 Dec 2004 03:40:26 -0000 1.143
***************
*** 471,482 ****
# people realise that it may not necessarily be the same, and will
# help diagnosing any 'wrong' scoring reported.
! original_score = 100 * msgstore_message.GetField(\
mgr.config.general.field_score_name)
! if original_score >= mgr.config.filter.spam_threshold:
! original_class = "spam"
! elif original_score >= mgr.config.filter.unsure_threshold:
! original_class = "unsure"
! else:
! original_class = "good"
push("<br>\n")
if original_score is None:
--- 471,484 ----
# people realise that it may not necessarily be the same, and will
# help diagnosing any 'wrong' scoring reported.
! original_score = msgstore_message.GetField(\
mgr.config.general.field_score_name)
! if original_score is not None:
! original_score *= 100.0
! if original_score >= mgr.config.filter.spam_threshold:
! original_class = "spam"
! elif original_score >= mgr.config.filter.unsure_threshold:
! original_class = "unsure"
! else:
! original_class = "good"
push("<br>\n")
if original_score is None:
_______________________________________________
Spambayes-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/spambayes-checkins