[Spambayes] RE: imapfilter.py
Meyer, Tony
T.A.Meyer at massey.ac.nz
Mon Sep 8 20:02:50 EDT 2003
> Ok, I got the 1.0a5 files and ran "setup.py install". (Should I have
> uninstalled the previous package first?)
No, it doesn't matter.
> In the web interface, the folder names still appear garbled
> with the first letter and the last missing for all folders except
> for Deleted Items and Sent Items.
Drat. Could you run "imapfilter.py -i4 -b" and send me the output that
you get if you display the folder selection page?
> Additionally, when I tried to save the training folder this error
> appeared:
[...]
> errmsg = self.verifyInput(parms, pmap)
> UnboundLocalError: local variable 'pmap' referenced before assignment
Drat again. This is a bug introduced when the 'advanced configuration'
page was added. I've fixed it in cvs, so it'll be fixed in the next
release.
> With this done I ran
> "imapfilter.py -t -c -i4" and this was the result:
[...]
> 15:53.95 > BOBC3 UID SEARCH UNDELETED
> 15:53.96 < BOBC3 OK UID SEARCH completed
[...]
> AttributeError: 'NoneType' object has no attribute 'split'
Drat once more. All the imap servers I've come across (looking at the
RFC, it's unclear which is correct) return something like this:
"""
51:27.68 > DOFO3 UID SEARCH UNDELETED
51:27.85 < * SEARCH
51:27.87 < DOFO3 OK SEARCH done.
"""
imapfilter dies because it's expecting that "* SEARCH" line. If you
change line 488 of imapfilter.py from:
if response[1][0] == "":
to
if not response[1][0]:
That should fix it. I've checked in basically the same fix for the next
release.
=Tony Meyer
More information about the Spambayes
mailing list