A patch that enables train-to-exhaustion support for IMAP.
This patch has three parts:
1. an __init__.py in the scripts folder that makes some of the classes in sb_imapfilter available to tte.py. This change is not represented in the patch file; you'll have to add __init__.py yourself.
2. Some imap support in mboxutils.py
3. Some refactoring in sb_imapfilter.py to sink the port selection logic into IMAPSession.__init__ so that it can be used by tte.py. In the process we simplify the uses of IMAPSession considerably.
This is probably not refactored in the best way; in particular, #1 above should probably never happen and whatever is used by both sb_imapfilter.py and tte.py should be moved into spambayes/ or at least out of scripts/. However, before taking on any major restructuring I wanted to get this into the hands of a spambayes devel who can make sure I'm on the right track.
Log in to post a comment.