summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-08-24 20:50:04 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-08-24 20:50:04 -0300
commitac06712cb381d5b7e9306aa145b4738a0c0f069e (patch)
treefe92367fa5f22c07378a80ac4052ab363297a783 /service
parentd0ae96039273ecc0c1d06f76209484ae420431f8 (diff)
[bug] start mailboxes properly
mail_store is needed as parameter, not querier --- Issue #439
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/adapter/services/mailboxes.py4
-rw-r--r--service/pixelated/config/services.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/service/pixelated/adapter/services/mailboxes.py b/service/pixelated/adapter/services/mailboxes.py
index 52c9c212..f8420326 100644
--- a/service/pixelated/adapter/services/mailboxes.py
+++ b/service/pixelated/adapter/services/mailboxes.py
@@ -38,7 +38,7 @@ class Mailboxes(object):
@defer.inlineCallbacks
def _index_mailboxes(self, mailboxes):
for mailbox_name in mailboxes:
- yield MailboxIndexerListener.listen(self.account, mailbox_name, self.querier)
+ yield MailboxIndexerListener.listen(self.account, mailbox_name, self.mail_store)
@defer.inlineCallbacks
def _create_or_get(self, mailbox_name):
@@ -50,7 +50,7 @@ class Mailboxes(object):
except MailboxCollision:
pass
# It means that it is already created. FIXME Why list_all fails to tell?
- yield MailboxIndexerListener.listen(self.account, mailbox_name, self.querier)
+ yield MailboxIndexerListener.listen(self.account, mailbox_name, self.mail_store)
defer.returnValue(Mailbox.create(mailbox_name, self.querier, self.search_engine))
@property
diff --git a/service/pixelated/config/services.py b/service/pixelated/config/services.py
index cc8da83b..2decaab1 100644
--- a/service/pixelated/config/services.py
+++ b/service/pixelated/config/services.py
@@ -28,7 +28,7 @@ class Services(object):
pixelated_mailboxes = Mailboxes(
leap_session.account,
- leap_session.soledad_session.soledad,
+ leap_session.mail_store,
soledad_querier,
self.search_engine)
yield pixelated_mailboxes.index_mailboxes()