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

Be sure to pass the condition on through to the underlying transport.

This commit is contained in:
Adam Coddington 2015-07-07 22:30:53 -07:00
parent 988cb7504f
commit 95f4d5c7ff
2 changed files with 1 additions and 2 deletions

View file

@ -393,7 +393,7 @@ class Mailbox(models.Model):
connection = self.get_connection()
if not connection:
return new_mail
for message in connection.get_message():
for message in connection.get_message(condition):
msg = self.process_incoming_message(message)
new_mail.append(msg)
return new_mail