|
|
|
@ -10,7 +10,7 @@ import string
|
|
|
|
|
|
|
|
|
|
import imapclient
|
|
|
|
|
import kode256
|
|
|
|
|
from ssl import SSLSysCallError
|
|
|
|
|
from ssl import SSLError
|
|
|
|
|
|
|
|
|
|
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, SSLSysCallError) as err:
|
|
|
|
|
except (self.imapserv.AbortError, SSLError) 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)
|
|
|
|
|