[Spambayes-checkins] spambayes/scripts sb_imapfilter.py, 1.30.4.1, 1.30.4.2

Tony Meyer anadelonbrin at users.sourceforge.net
Tue Nov 9 23:49:00 CET 2004


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

Modified Files:
      Tag: release_1_0-branch
	sb_imapfilter.py 
Log Message:
Backport:

imapfilter: Quote the search string that tries to find the message again that was just saved.

Index: sb_imapfilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_imapfilter.py,v
retrieving revision 1.30.4.1
retrieving revision 1.30.4.2
diff -C2 -d -r1.30.4.1 -r1.30.4.2
*** sb_imapfilter.py	9 Nov 2004 22:27:23 -0000	1.30.4.1
--- sb_imapfilter.py	9 Nov 2004 22:48:41 -0000	1.30.4.2
***************
*** 520,526 ****
          # have to use it for IMAP operations.
          imap.SelectFolder(self.folder.name)
!         response = imap.uid("SEARCH", "(UNDELETED HEADER " + \
!                             options["Headers", "mailid_header_name"] + \
!                             " " + self.id + ")")
          self._check(response, 'search')
          new_id = response[1][0]
--- 520,526 ----
          # have to use it for IMAP operations.
          imap.SelectFolder(self.folder.name)
!         response = imap.uid("SEARCH", "(UNDELETED HEADER %s \"%s\")" % \
!                             (options["Headers", "mailid_header_name"],
!                              self.id.replace('\\',r'\\').replace('"',r'\"')))
          self._check(response, 'search')
          new_id = response[1][0]



More information about the Spambayes-checkins mailing list