-class UsefulIMAP4(UsefulIMAPMixIn, imaplib.IMAP4): pass
-class UsefulIMAP4_SSL(UsefulIMAPMixIn, imaplib.IMAP4_SSL): pass
+ def _mesg(self, s, secs=None):
+ imaplibutil.new_mseg(self, s, secs)
+
+class UsefulIMAP4(UsefulIMAPMixIn, imaplib.IMAP4):
+ def open(self, host = '', port = imaplib.IMAP4_PORT):
+ imaplibutil.new_open(self, host, port)
+
+class UsefulIMAP4_SSL(UsefulIMAPMixIn, imaplib.IMAP4_SSL):
+ def open(self, host = '', port = imaplib.IMAP4_SSL_PORT):
+ imaplibutil.new_open_ssl(self, host, port)
+