Issue 6426: imaplib.IMAP4 "command illegal in this state" is unhelpful error message (original) (raw)

Issue6426

Created on 2009-07-06 08:22 by Sjoerder, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg90166 - (view) Author: Sjoerd (Sjoerder) Date: 2009-07-06 08:22
If you do not IMAP4.select(), you get the following error: imaplib.error: command SEARCH illegal in state AUTH. This does not inform the user that he has to do IMAP4.select(). Better would be: imaplib.error: command SEARCH illegal in state AUTH, allowed in state SELECTED. See also: http://mail.python.org/pipermail/patches/2006-December/021308.html
msg90218 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2009-07-07 09:04
Can you provide a patch?
msg90256 - (view) Author: Sjoerd (Sjoerder) Date: 2009-07-08 07:45
See http://bugs.python.org/issue1605192
msg182146 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-02-15 15:05
The issue 1605192 fix was applied to 2.7.
History
Date User Action Args
2022-04-11 14:56:50 admin set github: 50675
2013-02-15 15:05:43 r.david.murray set status: open -> closedsuperseder: Make Imap Error more helpfulnosy: + r.david.murraymessages: + resolution: duplicatestage: needs patch -> resolved
2009-07-08 07:45:18 Sjoerder set messages: +
2009-07-07 09:04:56 ezio.melotti set priority: lowversions: + Python 2.7, - Python 2.5keywords: + easynosy: + ezio.melottimessages: + stage: needs patch
2009-07-06 08:22:58 Sjoerder create