[Spambayes-checkins] spambayes/scripts sb_imapfilter.py,1.5,1.6
Tony Meyer
anadelonbrin at users.sourceforge.net
Mon Sep 8 18:36:57 EDT 2003
Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv15856/scripts
Modified Files:
sb_imapfilter.py
Log Message:
Another bug found by Rafael Scholl - some imap servers don't put the quotation mark
around folder names like they should (according to the RFC), and we stripped them off
whether they were there or not, which meant that some names would be missing the
first and last characters in the folder list. Fix this.
Index: sb_imapfilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_imapfilter.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** sb_imapfilter.py 8 Sep 2003 11:09:25 -0000 1.5
--- sb_imapfilter.py 9 Sep 2003 00:36:54 -0000 1.6
***************
*** 268,274 ****
# the case
if self.folder_delimiter == ',':
! print """WARNING: Your imap server uses commas as the folder
! delimiter. This may cause unpredictable errors."""
! folders.append(fol[m.end()+5:-1])
folders.sort()
return folders
--- 268,275 ----
# the case
if self.folder_delimiter == ',':
! print "WARNING: Your imap server uses a comma as the " \
! "folder delimiter. This may cause unpredictable " \
! "errors."
! folders.append(fol[m.end()+4:].strip('"'))
folders.sort()
return folders
More information about the Spambayes-checkins
mailing list