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:
parent
a9eb1714c2
commit
7abc47098b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user