[issue20013] imaplib behaviour when deleting selected folder
Daniël van Eeden
report at bugs.python.org
Thu Dec 19 08:06:15 CET 2013
Daniël van Eeden added the comment:
Without the patch:
Traceback (most recent call last):
File "./test.py", line 10, in <module>
s.select('INBOX')
File "/usr/lib/python2.7/imaplib.py", line 649, in select
typ, dat = self._simple_command(name, mailbox)
File "/usr/lib/python2.7/imaplib.py", line 1070, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.7/imaplib.py", line 899, in _command_complete
raise self.abort('command: %s => %s' % (name, val))
imaplib.abort: command: SELECT => socket error: EOF
With the patch:
Traceback (most recent call last):
File "./test.py", line 10, in <module>
s.select('INBOX')
File "/usr/lib/python2.7/imaplib.py", line 649, in select
typ, dat = self._simple_command(name, mailbox)
File "/usr/lib/python2.7/imaplib.py", line 1075, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib/python2.7/imaplib.py", line 899, in _command_complete
raise self.abort('command: %s => %s' % (name, val))
imaplib.abort: command: SELECT => Selected mailbox was deleted, have to disconnect.
I'm really happy with this new behaviour.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20013>
_______________________________________
More information about the Python-bugs-list
mailing list