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:
Ethan Glasser-Camp
2011-03-08 10:05:16 -05:00
committed by Nicolas Sebrecht
parent 0a76f0a23d
commit f9413226b8
4 changed files with 4 additions and 4 deletions

View File

@ -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