PyDocs

Nav

Internet Protocols and Support

IMAP4_SSL

imaplib

class (source) not WASI
  • IMAP4_SSL(host='', port=IMAP4_SSL_PORT, *, ssl_context=None, timeout=None)
IMAP4 client class over SSL connection

Instantiate with: IMAP4_SSL([host[, port[, ssl_context[, timeout=None]]]])

        host - host's name (default: localhost);
        port - port number (default: standard IMAP4 SSL port);
        ssl_context - a SSLContext object that contains your certificate chain
                      and private key (default: None)
        timeout - socket timeout (default: None) If timeout is not given or is None,
                  the global default socket timeout is used

for more documentation see the docstring of the parent class IMAP4.
Changed in 3.3, 3.4, 3.9, 3.12
  • 3.3: ssl_context parameter was added.
  • 3.4: The class now supports hostname check with ssl.SSLContext.check_hostname and Server Name Indication (see ssl.HAS_SNI).
  • 3.9: The optional timeout parameter was added.
  • 3.12: The deprecated keyfile and certfile parameters have been removed.
0 Examples
No examples for imaplib/IMAP4_SSL.
See Also
No see-alsos for imaplib/IMAP4_SSL
0 Notes
No notes for IMAP4_SSL