diff options
author | Caio Carrara <ccarrara@thoughtworks.com> | 2016-04-13 16:12:09 -0300 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-04-15 16:10:42 -0400 |
commit | d8ee6357c518a17a243840e42aeeae948bc03b2f (patch) | |
tree | a178aee1d356140e866a71553d7198cfd4a2fb68 /src/leap/mail/smtp/bounces.py | |
parent | ec7ccd73dd80b51c349fc6240d5bc2a7a556fbd4 (diff) |
[bug] Adds user_id to Account
Previously Account used user id from the store, but this attribute is
optional and None by default. This caused the collection_mapping to be
unable to distinct between multiple users message collections.
This chance adds a non optional user_id attribute to Account and use it
to index the collection_mapping.
- Resolves: https://github.com/pixelated/pixelated-user-agent/issues/674
- Releases: 0.4.0
Diffstat (limited to 'src/leap/mail/smtp/bounces.py')
-rw-r--r-- | src/leap/mail/smtp/bounces.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mail/smtp/bounces.py b/src/leap/mail/smtp/bounces.py index 64f2dd7..7a4674b 100644 --- a/src/leap/mail/smtp/bounces.py +++ b/src/leap/mail/smtp/bounces.py @@ -83,7 +83,8 @@ class Bouncer(object): def bouncerFactory(soledad): - acc = Account(soledad) + user_id = soledad.uuid + acc = Account(soledad, user_id) d = acc.callWhenReady(lambda _: acc.get_collection_by_mailbox(INBOX_NAME)) d.addCallback(lambda inbox: Bouncer(inbox)) return d |