summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/mail/smtp/bounces.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/mail/smtp/bounces.py')
-rw-r--r--src/leap/bitmask/mail/smtp/bounces.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/bitmask/mail/smtp/bounces.py b/src/leap/bitmask/mail/smtp/bounces.py
index 8260c1b0..608d87db 100644
--- a/src/leap/bitmask/mail/smtp/bounces.py
+++ b/src/leap/bitmask/mail/smtp/bounces.py
@@ -84,6 +84,8 @@ class Bouncer(object):
def bouncerFactory(soledad):
user_id = soledad.uuid
+ # TODO should reuse same account that is used in other places, otherwise
+ # new mail in here won't be notified.
acc = Account(soledad, user_id)
d = acc.callWhenReady(lambda _: acc.get_collection_by_mailbox(INBOX_NAME))
d.addCallback(lambda inbox: Bouncer(inbox))