New submission from Daniël van Eeden: When executing DELETE against a SELECTED imap folder the server responds: --------------------------- a8 SELECT SentMail * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 0 EXISTS * 0 RECENT * OK [UIDVALIDITY 1386063387] UIDs valid * OK [UIDNEXT 1] Predicted next UID * OK [NOMODSEQ] No permanent modsequences a8 OK [READ-WRITE] Select completed (0.001 secs). a9 delete SentMail a9 OK Delete completed. * BYE Selected mailbox was deleted, have to disconnect. Connection closed by foreign host. ---------------------------
If the same is done with imaplib the exception does not clearly indicate what happened. 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 ---------- components: Library (Lib) messages: 206501 nosy: dveeden priority: normal severity: normal status: open title: imaplib behaviour when deleting selected folder versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20013> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com