[Spambayes-checkins] spambayes imapfilter.py,1.35,1.36

Tony Meyer anadelonbrin at users.sourceforge.net
Sun Apr 27 23:20:50 EDT 2003


Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv12655

Modified Files:
	imapfilter.py 
Log Message:
Fix for SelectFolder bug reported by David Abrahams
(str object has no attribute 'name')

Index: imapfilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/imapfilter.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** imapfilter.py	27 Apr 2003 22:33:13 -0000	1.35
--- imapfilter.py	28 Apr 2003 05:20:46 -0000	1.36
***************
*** 219,224 ****
      def SelectFolder(self, folder):
          '''A method to point ensuing imap operations at a target folder'''
!         if self.current_folder != folder:
!             if self.current_folder != None:
                  if self.do_expunge:
                      # It is faster to do close() than a single
--- 219,224 ----
      def SelectFolder(self, folder):
          '''A method to point ensuing imap operations at a target folder'''
!         if self.current_folder != None:
!             if self.current_folder != folder:
                  if self.do_expunge:
                      # It is faster to do close() than a single
***************
*** 516,521 ****
  
          # Select the spam folder and unsure folder to make sure they exist
!         imap.SelectFolder(self.spam_folder)
!         imap.SelectFolder(self.unsure_folder)
              
          for filter_folder in options["imap", "filter_folders"]:
--- 516,521 ----
  
          # Select the spam folder and unsure folder to make sure they exist
!         imap.SelectFolder(self.spam_folder.name)
!         imap.SelectFolder(self.unsure_folder.name)
              
          for filter_folder in options["imap", "filter_folders"]:





More information about the Spambayes-checkins mailing list