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:
parent
0a76f0a23d
commit
f9413226b8
@ -16,7 +16,6 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
import imaplib
|
|
||||||
import email
|
import email
|
||||||
import random
|
import random
|
||||||
import binascii
|
import binascii
|
||||||
|
@ -17,9 +17,10 @@
|
|||||||
|
|
||||||
import re, socket, time, subprocess
|
import re, socket, time, subprocess
|
||||||
from offlineimap.ui import getglobalui
|
from offlineimap.ui import getglobalui
|
||||||
|
from offlineimap.imaplib2 import *
|
||||||
|
|
||||||
# Import the symbols we need that aren't exported by default
|
# 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:
|
try:
|
||||||
import ssl
|
import ssl
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
import imaplib
|
from offlineimap import imaplib2 as imaplib
|
||||||
from offlineimap import imaplibutil, imaputil, threadutil
|
from offlineimap import imaplibutil, imaputil, threadutil
|
||||||
from offlineimap.ui import getglobalui
|
from offlineimap.ui import getglobalui
|
||||||
from threading import *
|
from threading import *
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import imaplib
|
import offlineimap.imaplib2 as imaplib
|
||||||
import signal
|
import signal
|
||||||
import socket
|
import socket
|
||||||
import logging
|
import logging
|
||||||
|
Loading…
Reference in New Issue
Block a user