mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
Function name change
This commit is contained in:
parent
9c0cac66e2
commit
4e479e8f69
4 changed files with 6 additions and 6 deletions
|
|
@ -428,7 +428,7 @@ class Mailbox(models.Model):
|
||||||
if since is None:
|
if since is None:
|
||||||
since = now() - timedelta(days=INITIAL_IMPORT_LOOKBACK_DAYS)
|
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)
|
msg = self.process_incoming_message(message)
|
||||||
if not msg is None:
|
if not msg is None:
|
||||||
yield msg
|
yield msg
|
||||||
|
|
|
||||||
|
|
@ -25,5 +25,5 @@ class GenericFileMailbox(EmailTransport):
|
||||||
repository.flush()
|
repository.flush()
|
||||||
repository.unlock()
|
repository.unlock()
|
||||||
|
|
||||||
def get_new_message_ro(self, since=None):
|
def get_message_ro(self, since=None):
|
||||||
raise NotImplementedError("GenericFileMailbox.get_new_message_ro not implemented!")
|
raise NotImplementedError("GenericFileMailbox.get_message_ro not implemented!")
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ class ImapTransport(EmailTransport):
|
||||||
self.server.expunge()
|
self.server.expunge()
|
||||||
return
|
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
|
"""Read-only version of `get_message`. Uses a timestamp to fetch only messages
|
||||||
originating later than `since` parameter.
|
originating later than `since` parameter.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -43,5 +43,5 @@ class Pop3Transport(EmailTransport):
|
||||||
self.server.quit()
|
self.server.quit()
|
||||||
return
|
return
|
||||||
|
|
||||||
def get_new_message_ro(self, since=None):
|
def get_message_ro(self, since=None):
|
||||||
raise NotImplementedError("Pop3Transport.get_new_message_ro not implemented!")
|
raise NotImplementedError("Pop3Transport.get_message_ro not implemented!")
|
||||||
Loading…
Add table
Add a link
Reference in a new issue