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

Function name change

This commit is contained in:
Mike Varga 2022-10-14 13:54:56 -04:00
parent 9c0cac66e2
commit 4e479e8f69
4 changed files with 6 additions and 6 deletions

View file

@ -428,7 +428,7 @@ class Mailbox(models.Model):
if since is None:
since = now() - timedelta(days=INITIAL_IMPORT_LOOKBACK_DAYS)
for message in connection.get_new_message_ro(since=since):
for message in connection.get_message_ro(since=since):
msg = self.process_incoming_message(message)
if not msg is None:
yield msg

View file

@ -25,5 +25,5 @@ class GenericFileMailbox(EmailTransport):
repository.flush()
repository.unlock()
def get_new_message_ro(self, since=None):
raise NotImplementedError("GenericFileMailbox.get_new_message_ro not implemented!")
def get_message_ro(self, since=None):
raise NotImplementedError("GenericFileMailbox.get_message_ro not implemented!")

View file

@ -111,7 +111,7 @@ class ImapTransport(EmailTransport):
self.server.expunge()
return
def get_new_message_ro(self, since):
def get_message_ro(self, since):
"""Read-only version of `get_message`. Uses a timestamp to fetch only messages
originating later than `since` parameter.
"""

View file

@ -43,5 +43,5 @@ class Pop3Transport(EmailTransport):
self.server.quit()
return
def get_new_message_ro(self, since=None):
raise NotImplementedError("Pop3Transport.get_new_message_ro not implemented!")
def get_message_ro(self, since=None):
raise NotImplementedError("Pop3Transport.get_message_ro not implemented!")