Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Doc/library/imaplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ There's also a subclass for secure connections:
(potentially long-lived) structure. Please read :ref:`ssl-security` for
best practices.

.. note::

With the default *ssl_context*, the connection is encrypted but the
server certificate and hostname are not verified.
To verify them, pass a context created by
:func:`ssl.create_default_context`.

The optional *timeout* parameter specifies a timeout in seconds for the
connection attempt. If timeout is not given or is ``None``, the global default
socket timeout is used.
Expand Down Expand Up @@ -586,6 +593,13 @@ An :class:`IMAP4` instance has the following methods:
encryption on the IMAP connection. Please read :ref:`ssl-security` for
best practices.

.. note::

With the default *ssl_context*, the connection is encrypted but the
server certificate and hostname are not verified.
To verify them, pass a context created by
:func:`ssl.create_default_context`.

.. versionadded:: 3.2

.. versionchanged:: 3.4
Expand Down
Loading