[Spambayes-checkins] spambayes/Outlook2000/dialogs TrainingDialog.py, 1.12, 1.13

Mark Hammond mhammond at users.sourceforge.net
Sun Jun 15 21:54:43 EDT 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000/dialogs
In directory sc8-pr-cvs1:/tmp/cvs-serv7013

Modified Files:
	TrainingDialog.py 
Log Message:
Instead of suggesting the inbox, suggest folders we watch.


Index: TrainingDialog.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/TrainingDialog.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** TrainingDialog.py	17 Mar 2003 01:23:54 -0000	1.12
--- TrainingDialog.py	16 Jun 2003 03:54:40 -0000	1.13
***************
*** 73,80 ****
      def UpdateStatus(self):
          # Set some defaults.
!         # If we have no known ham folders, suggest the Inbox.
          if len(self.config.ham_folder_ids)==0 and self.mgr.outlook is not None:
!             inbox = self.mgr.outlook.Session.GetDefaultFolder(constants.olFolderInbox)
!             self.config.ham_folder_ids = [(inbox.StoreID, inbox.EntryID)]
          # If we have no known spam folders, but do have a spam folder
          # defined in the filters, use it.
--- 73,79 ----
      def UpdateStatus(self):
          # Set some defaults.
!         # If we have no known ham folders, suggest the folder we watch
          if len(self.config.ham_folder_ids)==0 and self.mgr.outlook is not None:
!             self.config.ham_folder_ids = self.mgr.config.filter.watch_folder_ids[:]
          # If we have no known spam folders, but do have a spam folder
          # defined in the filters, use it.





More information about the Spambayes-checkins mailing list