Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7503/scripts
Modified Files:
sb_imapfilter.py
Log Message:
If a folder (e.g. ham_folder) isn't selected, then don't try and expunge it.
Index: sb_imapfilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_imapfilter.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** sb_imapfilter.py 3 Jul 2005 08:53:28 -0000 1.62
--- sb_imapfilter.py 8 Jul 2005 03:24:40 -0000 1.63
***************
*** 273,278 ****
"unsure_folder",
"ham_folder"]:
! self.select(options["imap", fol])
! self.expunge()
# Expunge messages from the ham and spam training folders.
for fol_list in ["ham_train_folders",
--- 273,280 ----
"unsure_folder",
"ham_folder"]:
! folder_name = options["imap", fol]
! if folder_name:
! self.select(folder_name)
! self.expunge()
# Expunge messages from the ham and spam training folders.
for fol_list in ["ham_train_folders",
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins