Hello all, First of all, thanks for spending so much time on this software - my sense of humour has improved noticeably since the spam went away.
There's one feature of the expunge functionality (-e y) with sb_imapfilter.py which I ended up altering, due to the fact that Thunderbird doesn't seem to handle the \Deleted flag very well (on my ISP's setup, at least) - as checked ham remains in my inbox, I get one to two \Deleted copies of each ham mail, which Thunderbird then refuses to expunge or hide. So I set -e y, and found \Deleted mail was correctly expunged from all folders apart from inbox. In function logout, the spam_folder, unsure_folder, ham and spam train folders are all expunged. But the expunge operation doesn't ever seem to be run on the inbox... so I added a couple of lines to complete this operation. def logout(self): # sign off if self.do_expunge: # we may never have logged in, in which case we do nothing if self.logged_in: # expunge messages from inbox self.select('inbox') self.expunge() # expunge messages from the spam and unsure folders for fol in ["spam_folder", "unsure_folder",]: self.select(options["imap", fol]) self.expunge() # expunge messages from the ham and spam training folders for fol_list in ["ham_train_folders", "spam_train_folders",]: for fol in options["imap", fol_list]: self.select(fol) self.expunge() Cheers, Em _______________________________________________ spambayes-dev mailing list spambayes-dev@python.org http://mail.python.org/mailman/listinfo/spambayes-dev