forked from mirror/django-mailbox
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:
commit
02b63b4001
2 changed files with 10 additions and 1 deletions
|
|
@ -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)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue