summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r--service/pixelated/adapter/listener.py2
-rw-r--r--service/pixelated/adapter/soledad_querier.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/listener.py b/service/pixelated/adapter/listener.py
index 4bbb6b4f..1ed546fd 100644
--- a/service/pixelated/adapter/listener.py
+++ b/service/pixelated/adapter/listener.py
@@ -33,7 +33,7 @@ class MailboxListener(object):
def newMessages(self, exists, recent):
indexed_idents = set(self.SEARCH_ENGINE.search('tag:' + self.mailbox_name.lower()))
- soledad_idents = self.querier.get_idents_by_mailbox(self.mailbox_name)
+ soledad_idents = self.querier.idents_by_mailbox(self.mailbox_name)
missing_idents = soledad_idents.difference(indexed_idents)
diff --git a/service/pixelated/adapter/soledad_querier.py b/service/pixelated/adapter/soledad_querier.py
index 2395420c..35c8780f 100644
--- a/service/pixelated/adapter/soledad_querier.py
+++ b/service/pixelated/adapter/soledad_querier.py
@@ -89,7 +89,7 @@ class SoledadQuerier:
self.soledad.delete_doc(_mail.hdoc)
self.soledad.delete_doc(_mail.fdoc)
- def get_idents_by_mailbox(self, mailbox_name):
+ def idents_by_mailbox(self, mailbox_name):
return set(doc.content['chash'] for doc in self.soledad.get_from_index('by-type-and-mbox-and-deleted', 'flags', mailbox_name, '0'))
def _next_uid_for_mailbox(self, mailbox_name):