1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00
This commit is contained in:
Mike Varga 2022-10-15 14:15:36 -04:00
parent 5042ccc1fe
commit 18921d16df

View file

@ -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)