Updated bundled imaplib2 to 2.36
2.36 it includes support for SSL version override that was integrated into our code before, no other changes. Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
This commit is contained in:
parent
2df5b716b5
commit
be1c72ea5f
@ -33,6 +33,9 @@ WIP (add new stuff for the next release)
|
|||||||
- fix for Gmail sending a BYE response after reading >100 messages
|
- fix for Gmail sending a BYE response after reading >100 messages
|
||||||
in a session;
|
in a session;
|
||||||
- includes fix for GitHub#15: patch was accepted upstream.
|
- includes fix for GitHub#15: patch was accepted upstream.
|
||||||
|
* Updated bundled imaplib2 to 2.36: it includes support for SSL
|
||||||
|
version override that was integrated into our code before,
|
||||||
|
no other changes.
|
||||||
|
|
||||||
OfflineIMAP v6.5.5-rc1 (2012-09-05)
|
OfflineIMAP v6.5.5-rc1 (2012-09-05)
|
||||||
===================================
|
===================================
|
||||||
|
@ -17,9 +17,9 @@ Public functions: Internaldate2Time
|
|||||||
__all__ = ("IMAP4", "IMAP4_SSL", "IMAP4_stream",
|
__all__ = ("IMAP4", "IMAP4_SSL", "IMAP4_stream",
|
||||||
"Internaldate2Time", "ParseFlags", "Time2Internaldate")
|
"Internaldate2Time", "ParseFlags", "Time2Internaldate")
|
||||||
|
|
||||||
__version__ = "2.35"
|
__version__ = "2.36"
|
||||||
__release__ = "2"
|
__release__ = "2"
|
||||||
__revision__ = "35"
|
__revision__ = "36"
|
||||||
__credits__ = """
|
__credits__ = """
|
||||||
Authentication code contributed by Donn Cave <donn@u.washington.edu> June 1998.
|
Authentication code contributed by Donn Cave <donn@u.washington.edu> June 1998.
|
||||||
String method conversion by ESR, February 2001.
|
String method conversion by ESR, February 2001.
|
||||||
@ -474,8 +474,7 @@ class IMAP4(object):
|
|||||||
elif self.ssl_version == "ssl23" or self.ssl_version is None:
|
elif self.ssl_version == "ssl23" or self.ssl_version is None:
|
||||||
ssl_version = ssl.PROTOCOL_SSLv23
|
ssl_version = ssl.PROTOCOL_SSLv23
|
||||||
else:
|
else:
|
||||||
raise socket.sslerror("Invalid SSL version requested: %s",
|
raise socket.sslerror("Invalid SSL version requested: %s", self.ssl_version)
|
||||||
self.ssl_version)
|
|
||||||
|
|
||||||
self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, ca_certs=self.ca_certs, cert_reqs=cert_reqs, ssl_version=ssl_version)
|
self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, ca_certs=self.ca_certs, cert_reqs=cert_reqs, ssl_version=ssl_version)
|
||||||
ssl_exc = ssl.SSLError
|
ssl_exc = ssl.SSLError
|
||||||
@ -1994,7 +1993,7 @@ class IMAP4_SSL(IMAP4):
|
|||||||
"""IMAP4 client class over SSL connection
|
"""IMAP4 client class over SSL connection
|
||||||
|
|
||||||
Instantiate with:
|
Instantiate with:
|
||||||
IMAP4_SSL(host=None, port=None, keyfile=None, certfile=None, ssl_version="ssl23", debug=None, debug_file=None, identifier=None, timeout=None)
|
IMAP4_SSL(host=None, port=None, keyfile=None, certfile=None, ca_certs=None, cert_verify_cb=None, ssl_version="ssl23", debug=None, debug_file=None, identifier=None, timeout=None)
|
||||||
|
|
||||||
host - host's name (default: localhost);
|
host - host's name (default: localhost);
|
||||||
port - port number (default: standard IMAP4 SSL port);
|
port - port number (default: standard IMAP4 SSL port);
|
||||||
|
Loading…
Reference in New Issue
Block a user