[issue20013] imaplib behaviour when deleting selected folder

2014-02-07 Thread R. David Murray
R. David Murray added the comment: Fix applied without tests, as I haven't found time to write them, given the poor existing test coverage of this module. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3, Python 3.4 ___

[issue20013] imaplib behaviour when deleting selected folder

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset aecc0a4be052 by R David Murray in branch '3.3': #20013: don't raise socket error when selected mailbox deleted. http://hg.python.org/cpython/rev/aecc0a4be052 New changeset 16af3de2240f by R David Murray in branch '2.7': #20013: don't raise socket er

[issue20013] imaplib behaviour when deleting selected folder

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset a24f7d195b8f by R David Murray in branch 'default': #20013: don't raise socket error when selected mailbox deleted. http://hg.python.org/cpython/rev/a24f7d195b8f -- nosy: +python-dev ___ Python tracker <

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
Daniël van Eeden added the comment: Without the patch: Traceback (most recent call last): File "./test.py", line 10, in 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", l

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread R. David Murray
R. David Murray added the comment: Ah, I see. The BYE isn't issued until the next command is successfully transmitted. I'd call that a broken server, but obviously it's what you have to deal with, so we should handle it. Try this version. -- Added file: http://bugs.python.org/file33

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
Daniël van Eeden added the comment: The patch doesn't seem to change the behaviour. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread R. David Murray
R. David Murray added the comment: Please try the attached patch and let me know if it improves things. If it works, figuring out how to write a test for this is going to be the hard part. The imaplib tests don't have very good coverage, even in python3 where there are at least more of them.

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
Daniël van Eeden added the comment: I've replace the user and password in both the test script and the log. -- Added file: http://bugs.python.org/file33190/imaplib_issue20013_san.log ___ Python tracker

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
Changes by Daniël van Eeden : Added file: http://bugs.python.org/file33189/test_san.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread R. David Murray
R. David Murray added the comment: Looks like a bug in the RFC, not including DELETE of current mailbox in the things that cause a transition back to 'authenticated' state. But yes, a clearer error message would be good. The code should be handling this correctly, so something odd is going on

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
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. *