From 18921d16df36bd3423984aa6a6c0ddab578c5972 Mon Sep 17 00:00:00 2001 From: Mike Varga Date: Sat, 15 Oct 2022 14:15:36 -0400 Subject: [PATCH] Fix --- django_mailbox/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django_mailbox/models.py b/django_mailbox/models.py index 327a30c..5cd21d7 100644 --- a/django_mailbox/models.py +++ b/django_mailbox/models.py @@ -430,9 +430,9 @@ class Mailbox(models.Model): if not connection: return - # since = self.last_polling - # if since is None: - since = now() - timedelta(days=INITIAL_IMPORT_LOOKBACK_DAYS) + since = self.last_polling + if since is None: + since = now() - timedelta(days=INITIAL_IMPORT_LOOKBACK_DAYS) for message in connection.get_message_ro(since=since): msg = self.process_incoming_message(message)