Compilation fixes
This commit is contained in:
parent
196f35e972
commit
691386b3d7
@ -20,6 +20,10 @@ import re, string, types, binascii, socket, time, random, subprocess, sys, os
|
|||||||
from offlineimap.ui import UIBase
|
from offlineimap.ui import UIBase
|
||||||
from imaplib import *
|
from imaplib import *
|
||||||
|
|
||||||
|
# Import the symbols we need that aren't exported by default
|
||||||
|
from imaplib import IMAP4_PORT, IMAP4_SSL_PORT, InternalDate, Mon2num
|
||||||
|
|
||||||
|
|
||||||
class IMAP4_Tunnel(IMAP4):
|
class IMAP4_Tunnel(IMAP4):
|
||||||
"""IMAP4 client class over a tunnel
|
"""IMAP4 client class over a tunnel
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ class UsefulIMAPMixIn:
|
|||||||
self.selectedfolder = None
|
self.selectedfolder = None
|
||||||
|
|
||||||
def _mesg(self, s, secs=None):
|
def _mesg(self, s, secs=None):
|
||||||
imaplibutil.new_mseg(self, s, secs)
|
imaplibutil.new_mesg(self, s, secs)
|
||||||
|
|
||||||
class UsefulIMAP4(UsefulIMAPMixIn, imaplib.IMAP4):
|
class UsefulIMAP4(UsefulIMAPMixIn, imaplib.IMAP4):
|
||||||
def open(self, host = '', port = imaplib.IMAP4_PORT):
|
def open(self, host = '', port = imaplib.IMAP4_PORT):
|
||||||
@ -55,7 +55,7 @@ class UsefulIMAP4_SSL(UsefulIMAPMixIn, imaplib.IMAP4_SSL):
|
|||||||
def open(self, host = '', port = imaplib.IMAP4_SSL_PORT):
|
def open(self, host = '', port = imaplib.IMAP4_SSL_PORT):
|
||||||
imaplibutil.new_open_ssl(self, host, port)
|
imaplibutil.new_open_ssl(self, host, port)
|
||||||
|
|
||||||
class UsefulIMAP4_Tunnel(UsefulIMAPMixIn, imaplib.IMAP4_Tunnel): pass
|
class UsefulIMAP4_Tunnel(UsefulIMAPMixIn, imaplibutil.IMAP4_Tunnel): pass
|
||||||
|
|
||||||
class IMAPServer:
|
class IMAPServer:
|
||||||
def __init__(self, config, reposname,
|
def __init__(self, config, reposname,
|
||||||
|
Loading…
Reference in New Issue
Block a user