summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/account.py
diff options
context:
space:
mode:
authorCaio Carrara <ccarrara@thoughtworks.com>2016-04-13 16:12:09 -0300
committerKali Kaneko <kali@leap.se>2016-04-15 16:10:42 -0400
commitd8ee6357c518a17a243840e42aeeae948bc03b2f (patch)
treea178aee1d356140e866a71553d7198cfd4a2fb68 /src/leap/mail/imap/account.py
parentec7ccd73dd80b51c349fc6240d5bc2a7a556fbd4 (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/imap/account.py')
-rw-r--r--src/leap/mail/imap/account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/mail/imap/account.py b/src/leap/mail/imap/account.py
index 2f9ed1d..0b8e019 100644
--- a/src/leap/mail/imap/account.py
+++ b/src/leap/mail/imap/account.py
@@ -88,7 +88,7 @@ class IMAPAccount(object):
# about user_id, only the client backend.
self.user_id = user_id
- self.account = Account(store, ready_cb=lambda: d.callback(self))
+ self.account = Account(store, user_id, ready_cb=lambda: d.callback(self))
def end_session(self):
"""