|
|
@ -259,6 +259,7 @@ class MailRoom(Bureau):
|
|
|
|
Polls the currently configured IMAP server and returns a dict
|
|
|
|
Polls the currently configured IMAP server and returns a dict
|
|
|
|
containing unread emails.
|
|
|
|
containing unread emails.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
self._connect_imap()
|
|
|
|
messages = self.imapserv.sort("ARRIVAL", ["UNSEEN"])
|
|
|
|
messages = self.imapserv.sort("ARRIVAL", ["UNSEEN"])
|
|
|
|
print("%d unread messages in INBOX" % len(messages))
|
|
|
|
print("%d unread messages in INBOX" % len(messages))
|
|
|
|
resp = self.imapserv.fetch(messages, ['FLAGS', 'INTERNALDATE',
|
|
|
|
resp = self.imapserv.fetch(messages, ['FLAGS', 'INTERNALDATE',
|
|
|
|