]> code.delx.au - offlineimap/commitdiff
Compilation fixes
authorJohn Goerzen <jgoerzen@complete.org>
Wed, 4 Jul 2007 18:17:27 +0000 (19:17 +0100)
committerJohn Goerzen <jgoerzen@complete.org>
Wed, 4 Jul 2007 18:17:27 +0000 (19:17 +0100)
offlineimap/imaplibutil.py
offlineimap/imapserver.py

index b8b776dbc297a36de7c61f3b1d1be85cd7d26ade..61d7b04521bd1ee05b23067c200f63b6e1a1ed22 100644 (file)
@@ -20,6 +20,10 @@ import re, string, types, binascii, socket, time, random, subprocess, sys, os
 from offlineimap.ui import UIBase
 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):
     """IMAP4 client class over a tunnel
 
index e0dfd285198788411a1f89ceb9fbe2392b7fb992..6ea25ebd5bf1912b47e4f0f0ca597eaf7d61148c 100644 (file)
@@ -45,7 +45,7 @@ class UsefulIMAPMixIn:
             self.selectedfolder = None
 
     def _mesg(self, s, secs=None):
-        imaplibutil.new_mseg(self, s, secs)
+        imaplibutil.new_mesg(self, s, secs)
 
 class UsefulIMAP4(UsefulIMAPMixIn, imaplib.IMAP4):
     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):
         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:
     def __init__(self, config, reposname,