[spambayes-bugs] [ spambayes-Bugs-802545 ] crash when loggin off
imapfilter UI
SourceForge.net
noreply at sourceforge.net
Mon Sep 8 09:25:50 EDT 2003
Bugs item #802545, was opened at 2003-09-08 17:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=802545&group_id=61702
Category: imapfilter
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Sjoerd Mullender (sjoerd)
Assigned to: Tony Meyer (anadelonbrin)
Summary: crash when loggin off imapfilter UI
Initial Comment:
When the imap option expunge is set to True and you try
to save and logoff from the UI (sb_imapfilter.py -b),
you get a crash (see below).
I can imagine multiple solutions:
- put a try/except around the call to self.expunge in
logout()
- check whether a folder has been selected before
calling expunge
Here is the trace:
500 Server error
Traceback (most recent call last):
File
"/ufs/sjoerd/lib/python2.4/site-packages/spambayes/Dibbler.py",
line 453, in found_terminator
getattr(plugin, name)(**params)
File
"/ufs/sjoerd/lib/python2.4/site-packages/spambayes/ImapUI.py",
line 160, in onSave
self.imap.logout()
File "/ufs/sjoerd/bin/sb_imapfilter.py", line 216, in
logout
self.expunge()
File "/ufs/sjoerd/src/python/Lib/imaplib.py", line
402, in expunge
typ, dat = self._simple_command(name)
File "/ufs/sjoerd/src/python/Lib/imaplib.py", line
1000, in _simple_command
return self._command_complete(name,
self._command(name, *args))
File "/ufs/sjoerd/src/python/Lib/imaplib.py", line
759, in _command
raise self.error(
error: command EXPUNGE illegal in state NONAUTH
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=802545&group_id=61702
More information about the Spambayes-bugs
mailing list