1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

If no message was returned; continue.

This commit is contained in:
Adam Coddington 2015-04-12 12:21:48 -07:00
parent c60b32aca5
commit 4037aac5e4

View file

@ -101,6 +101,8 @@ class ImapTransport(EmailTransport):
for uid in message_ids:
try:
typ, msg_contents = self.server.uid('fetch', uid, '(RFC822)')
if not msg_contents:
continue
message = self.get_email_from_bytes(msg_contents[0][1])
if (