[Spambayes-checkins] spambayes/Outlook2000 addin.py,1.137,1.138
Tony Meyer
anadelonbrin at users.sourceforge.net
Wed Nov 17 01:01:23 CET 2004
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11031/Outlook2000
Modified Files:
addin.py
Log Message:
Fix bug identified by 'DUI-DWI'.
Not sure how this got past the testing, but the messageinfo database
uses '0' and '1' as keys, not 0 and 1, so showing clues for a trained
message would fail.
Index: addin.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/addin.py,v
retrieving revision 1.137
retrieving revision 1.138
diff -C2 -d -r1.137 -r1.138
*** addin.py 11 Nov 2004 21:21:55 -0000 1.137
--- addin.py 17 Nov 2004 00:01:06 -0000 1.138
***************
*** 481,485 ****
trained_as = mgr.classifier_data.message_db.get(msgstore_message.searchkey)
push("This message has %sbeen trained%s." % \
! {0 : ("", " as ham"), 1 : ("", " as spam"), None : ("not ", "")}
[trained_as])
# Format the clues.
--- 481,485 ----
trained_as = mgr.classifier_data.message_db.get(msgstore_message.searchkey)
push("This message has %sbeen trained%s." % \
! {'0' : ("", " as ham"), '1' : ("", " as spam"), None : ("not ", "")}
[trained_as])
# Format the clues.
More information about the Spambayes-checkins
mailing list