[spambayes-bugs] [ spambayes-Bugs-802545 ] crash when loggin off imapfilter UI

SourceForge.net noreply at sourceforge.net
Tue Sep 9 02:08:13 EDT 2003


Bugs item #802545, was opened at 2003-09-09 03:25
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=802545&group_id=61702

Category: imapfilter
Group: None
>Status: Closed
>Resolution: Fixed
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



----------------------------------------------------------------------

>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-09-09 20:08

Message:
Logged In: YES 
user_id=552329

Fixed, thanks.  It should really have gone through and 

SELECTed each folder that the filter works with, and then 

expunged (this is what is does now).  Plus it also needs to 

make sure that it was logged in in the first place, or do 

nothing.

----------------------------------------------------------------------

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