forked from ticketfrei/ticketfrei
commit
7fb70cee57
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,6 +5,7 @@ __pycache__/
|
||||||
last_mention
|
last_mention
|
||||||
last_mail
|
last_mail
|
||||||
ticketfrei.cfg
|
ticketfrei.cfg
|
||||||
|
ticketfrei.sqlite
|
||||||
seen_toots.pickle
|
seen_toots.pickle
|
||||||
seen_toots.pickle.part
|
seen_toots.pickle.part
|
||||||
pip-selfcheck.json
|
pip-selfcheck.json
|
||||||
|
|
|
@ -70,7 +70,14 @@ class Mailbot(object):
|
||||||
crawl for new mails.
|
crawl for new mails.
|
||||||
:return: msgs: (list of report.Report objects)
|
:return: msgs: (list of report.Report objects)
|
||||||
"""
|
"""
|
||||||
rv, data = self.mailbox.select("Inbox")
|
try:
|
||||||
|
rv, data = self.mailbox.select("Inbox")
|
||||||
|
except imaplib.IMAP4.abort:
|
||||||
|
rv = "Crawling Mail failed"
|
||||||
|
logger.error(rv, exc_info=True)
|
||||||
|
except TimeoutError:
|
||||||
|
rv = "No Connection"
|
||||||
|
logger.error(rv, exc_info=True)
|
||||||
msgs = []
|
msgs = []
|
||||||
if rv == 'OK':
|
if rv == 'OK':
|
||||||
rv, data = self.mailbox.search(None, "ALL")
|
rv, data = self.mailbox.search(None, "ALL")
|
||||||
|
|
Loading…
Reference in a new issue