Title: clarify use of imaplib IMAP4(_SSL) shutdown
Type: Stage: resolved
Components: Documentation Versions: Python 3.1, Python 3.2, Python 2.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, jh45, pitrou, westley.martinez
Priority: normal Keywords:

Created on 2011-02-07 02:18 by jh45, last changed 2011-02-07 16:04 by pitrou. This issue is now closed.

Messages (3)
msg128096 - (view) Author: John (jh45) Date: 2011-02-07 02:18
Attempting IMAP4_SSL.shutdown() after IMAP4_SSL.logout() throws an error because the socket is already closed. (I cannot test with plain IMAP4.)

Please add appropriate notice, perhaps under IMAP4.shutdown().

Perhaps something like "If you do not use open(), and do only login() and logout(), you do not need shutdown(), as logout() does it for you."

-- jh
msg128097 - (view) Author: Westley Martínez (westley.martinez) * Date: 2011-02-07 03:43
Perhaps we should say something regarding that shutdown, and similar methods, must be called after open.
msg128132 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-02-07 16:04
Ok, clarified in r88371. Thank you!
Date User Action Args
2011-02-07 16:04:16pitrousetstatus: open -> closed

versions: + Python 3.1, Python 2.7
nosy: + pitrou

messages: + msg128132
resolution: fixed
stage: resolved
2011-02-07 03:43:45westley.martinezsetnosy: + westley.martinez
messages: + msg128097
2011-02-07 02:18:51jh45create