Added patch for Python 2.6 ssl
This commit is contained in:
parent
0a221dc9c5
commit
e5f6e392a8
@ -23,6 +23,9 @@ from offlineimap.imaplib2 import *
|
||||
# Import the symbols we need that aren't exported by default
|
||||
from offlineimap.imaplib2 import IMAP4_PORT, IMAP4_SSL_PORT, InternalDate, Mon2num
|
||||
|
||||
# ssl is new in python 2.6
|
||||
if (sys.version_info[0] == 2 and sys.version_info[1] >= 6) or sys.version_info[0] >= 3:
|
||||
import ssl
|
||||
|
||||
class IMAP4_Tunnel(IMAP4):
|
||||
"""IMAP4 client class over a tunnel
|
||||
|
Loading…
Reference in New Issue
Block a user