Import imaplib2 instead of imaplib
imaplib2 has slightly different semantics than standard imaplib, so this patch will break the build, but I thought it was helpful to have it as a separate commit. Signed-off-by: Ethan Glasser-Camp <ethan@betacantrips.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:

committed by
Nicolas Sebrecht

parent
0a76f0a23d
commit
f9413226b8
@ -17,9 +17,10 @@
|
||||
|
||||
import re, socket, time, subprocess
|
||||
from offlineimap.ui import getglobalui
|
||||
from offlineimap.imaplib2 import *
|
||||
|
||||
# Import the symbols we need that aren't exported by default
|
||||
from imaplib import IMAP4_PORT, IMAP4_SSL_PORT, InternalDate, Mon2num, IMAP4, IMAP4_SSL
|
||||
from offlineimap.imaplib2 import IMAP4_PORT, IMAP4_SSL_PORT, InternalDate, Mon2num
|
||||
|
||||
try:
|
||||
import ssl
|
||||
|
Reference in New Issue
Block a user