[Spambayes-checkins] spambayes/Outlook2000 addin.py,1.150,1.151

Tony Meyer anadelonbrin at users.sourceforge.net
Mon Jan 10 23:17:41 CET 2005


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8218/Outlook2000

Modified Files:
	addin.py 
Log Message:
The call to train does the database update - don't do it ourselves, or the call to
 train will do nothing, thinking that the work is already done.

Index: addin.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/addin.py,v
retrieving revision 1.150
retrieving revision 1.151
diff -C2 -d -r1.150 -r1.151
*** addin.py	29 Dec 2004 06:22:24 -0000	1.150
--- addin.py	10 Jan 2005 22:17:38 -0000	1.151
***************
*** 703,709 ****
              self.manager.stats.RecordTraining(False,
                                  self.manager.score(msgstore_message))
-             msgstore_message.t = True
-             self.manager.classifier_data.message_db.store_msg(msgstore_message)
-             self.manager.classifier_data.dirty = True
              # Record the original folder, in case this message is not where
              # it was after filtering, or has never been filtered.
--- 703,706 ----
***************
*** 775,781 ****
                  self.manager.stats.RecordTraining(True,
                                          self.manager.score(msgstore_message))
-                 msgstore_message.t = False
-                 self.manager.classifier_data.message_db.store_msg(msgstore_message)
-                 self.manager.classifier_data.dirty = True
                  # Must train before moving, else we lose the message!
                  print "Recovering to folder '%s' and ham training message '%s' - " % (restore_folder.name, subject),
--- 772,775 ----



More information about the Spambayes-checkins mailing list