|
|
|
@ -10,7 +10,7 @@ import string
|
|
|
|
|
|
|
|
|
|
import imapclient
|
|
|
|
|
import kode256
|
|
|
|
|
from ssl import SSLError
|
|
|
|
|
from OpenSSL import SSL
|
|
|
|
|
|
|
|
|
|
from bureau import Bureau, add_command, add_api
|
|
|
|
|
|
|
|
|
@ -76,7 +76,7 @@ class MailRoom(Bureau):
|
|
|
|
|
"""
|
|
|
|
|
try:
|
|
|
|
|
self.imapserv.select_folder("INBOX")
|
|
|
|
|
except (self.imapserv.AbortError, SSLError) as err:
|
|
|
|
|
except (self.imapserv.AbortError, SSL.SysCallError) as err:
|
|
|
|
|
self.log.debug("reconnecting after imap connection error: ", err)
|
|
|
|
|
self.imapserv.logout()
|
|
|
|
|
self.imapserv = imapclient.IMAPClient(self.host, use_uid=True, ssl=self.imap_ssl)
|
|
|
|
|