1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-25 09:28:38 -05:00

select inbox if gmail server

This commit is contained in:
Walter A. Boring IV 2018-11-29 10:01:30 -05:00
parent a9eb1714c2
commit 7abc47098b

View File

@ -221,7 +221,8 @@ def check_email_thread():
LOG.exception("Failed to login with IMAP server")
return
# select_info = server.select_folder('INBOX')
if 'gmail' in CONFIG['imap']['host'].lower():
server.select_folder('INBOX', readonly=True)
messages = server.search(['SINCE', today])
LOG.debug("%d messages received today" % len(messages))