summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-07-31 13:11:53 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:31 +0200
commita7c84d6faf5ddd7866ce4c0508e03c7c3779eaca (patch)
tree0a1716ef830a64480f0ac8b8b8446294bfdd2835 /service/pixelated
parent12636acfa193fb6871367771582f43a95611bfba (diff)
Added mail store to mail service.
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/adapter/services/mail_service.py3
-rw-r--r--service/pixelated/config/services.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py
index da1b1bea..23cbc5f7 100644
--- a/service/pixelated/adapter/services/mail_service.py
+++ b/service/pixelated/adapter/services/mail_service.py
@@ -20,8 +20,9 @@ from pixelated.adapter.services.tag_service import extract_reserved_tags
class MailService(object):
- def __init__(self, mailboxes, mail_sender, soledad_querier, search_engine):
+ def __init__(self, mailboxes, mail_sender, mail_store, soledad_querier, search_engine):
self.mailboxes = mailboxes
+ self.mail_store = mail_store
self.querier = soledad_querier
self.search_engine = search_engine
self.mail_sender = mail_sender
diff --git a/service/pixelated/config/services.py b/service/pixelated/config/services.py
index c20db10d..2b739acd 100644
--- a/service/pixelated/config/services.py
+++ b/service/pixelated/config/services.py
@@ -69,6 +69,7 @@ class Services(object):
defer.returnValue(MailService(
pixelated_mailboxes,
pixelated_mail_sender,
+ leap_session.mail_store,
soledad_querier,
search_engine))