diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-12 18:49:16 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-11-12 18:49:16 (GMT) |
commit | f3b001f966d8e16662241e2ed7c7f345cd7051db (patch) | |
tree | d1f3d82d1a743763eda10f2b820783d966c1de21 /Doc/library/imaplib.rst | |
parent | e0bf419ae7586b8e40b16eaec63122e71023e4fa (diff) | |
download | cpython-f3b001f966d8e16662241e2ed7c7f345cd7051db.zip cpython-f3b001f966d8e16662241e2ed7c7f345cd7051db.tar.gz cpython-f3b001f966d8e16662241e2ed7c7f345cd7051db.tar.bz2 |
Issue #4471: Add the IMAP.starttls() method to enable encryption on
standard IMAP4 connections. Original patch by Lorenzo M. Catucci.
Diffstat (limited to 'Doc/library/imaplib.rst')
-rw-r--r-- | Doc/library/imaplib.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst index b8ac03d..dc94beb 100644 --- a/Doc/library/imaplib.rst +++ b/Doc/library/imaplib.rst @@ -56,6 +56,7 @@ Three exceptions are defined as attributes of the :class:`IMAP4` class: write permission, and the mailbox will need to be re-opened to re-obtain write permission. + There's also a subclass for secure connections: @@ -68,6 +69,7 @@ There's also a subclass for secure connections: and *certfile* are also optional - they can contain a PEM formatted private key and certificate chain file for the SSL connection. + The second subclass allows for connections created by a child process: @@ -406,6 +408,15 @@ An :class:`IMAP4` instance has the following methods: This is an ``IMAP4rev1`` extension command. +.. method:: IMAP4.starttls(ssl_context=None) + + Send a ``STARTTLS`` command. The *ssl_context* argument is optional + and should be a :class:`ssl.SSLContext` object. This will enable + encryption on the IMAP connection. + + .. versionadded:: 3.2 + + .. method:: IMAP4.status(mailbox, names) Request named status conditions for *mailbox*. |