This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dveeden
Recipients dveeden
Date 2013-12-18.08:34:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387355660.84.0.595349398689.issue20013@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-12-18 08:34:20dveedensetrecipients: + dveeden
2013-12-18 08:34:20dveedensetmessageid: <1387355660.84.0.595349398689.issue20013@psf.upfronthosting.co.za>
2013-12-18 08:34:20dveedenlinkissue20013 messages
2013-12-18 08:34:18dveedencreate