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.

Title: imaplib.IMAP4 "command illegal in this state" is unhelpful error message
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
Status: closed Resolution: duplicate
Dependencies: Superseder: Make Imap Error more helpful
View: 1605192
Assigned To: Nosy List: Sjoerder, ezio.melotti, r.david.murray
Priority: low Keywords: easy

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, you get the following error:
imaplib.error: command SEARCH illegal in state AUTH.

This does not inform the user that he has to do Better
would be: 
imaplib.error: command SEARCH illegal in state AUTH, allowed in state

See also:
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
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.
Date User Action Args
2022-04-11 14:56:50adminsetgithub: 50675
2013-02-15 15:05:43r.david.murraysetstatus: open -> closed

superseder: Make Imap Error more helpful

nosy: + r.david.murray
messages: + msg182146
resolution: duplicate
stage: needs patch -> resolved
2009-07-08 07:45:18Sjoerdersetmessages: + msg90256
2009-07-07 09:04:56ezio.melottisetpriority: low

versions: + Python 2.7, - Python 2.5
keywords: + easy
nosy: + ezio.melotti

messages: + msg90218
stage: needs patch
2009-07-06 08:22:58Sjoerdercreate