1
0
Fork 0

Merged in medsafe/django-mailbox/ashvetsov/fixes-to-push (pull request #1)

Thanks @medsafe!

Fixes for signal exception handling and inability to get IMAP inbox
This commit is contained in:
Adam Coddington 2013-09-07 13:05:25 -07:00
commit 02b63b4001
2 changed files with 10 additions and 1 deletions

View file

@ -22,6 +22,10 @@ class ImapTransport(object):
def get_message(self):
typ, inbox = self.server.search(None, 'ALL')
if not inbox[0]:
return
for key in inbox[0].split():
try:
typ, msg_contents = self.server.fetch(key, '(RFC822)')