summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-05-11 13:50:25 -0400
committerKali Kaneko <kali@leap.se>2016-05-12 13:17:48 -0400
commit93d4a3bdcb5756db4df70b477958abc7db5a054e (patch)
tree61c4f3174d9c59a42a6c3b2d8edaa8ef79429a40
parent983d18e6a94e60c0f641ac332038b875ea685433 (diff)
[bug] Allow pixelated integration not to interfere with thunderbird
One of the pixelated adaptors was trying to access a non-existing attribute in HashableMailbox, which for some reason was blocking the operation of the imap server (uncatched exception in listeners call maybe). adding an attribute skips this error and therefore allows seamless use of both pixelated and thunderbird user agents at the same time. Resolves: #8083
-rw-r--r--mail/changes/next-changelog.rst1
-rw-r--r--mail/src/leap/mail/imap/mailbox.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/mail/changes/next-changelog.rst b/mail/changes/next-changelog.rst
index 11389fe3..985e92af 100644
--- a/mail/changes/next-changelog.rst
+++ b/mail/changes/next-changelog.rst
@@ -15,6 +15,7 @@ Features
Bugfixes
~~~~~~~~
+- `#8083 <https://leap.se/code/issues/8083>`_: Allow pixelated UA not interfere with Thunderbird operation.
- Cast local identity (version string) to bytes, avoid TLS transport raising exception.
- `#1235 <https://leap.se/code/issues/1235>`_: Description for the fixed stuff corresponding with issue #1235.
diff --git a/mail/src/leap/mail/imap/mailbox.py b/mail/src/leap/mail/imap/mailbox.py
index d545c009..e70a1d80 100644
--- a/mail/src/leap/mail/imap/mailbox.py
+++ b/mail/src/leap/mail/imap/mailbox.py
@@ -91,6 +91,9 @@ def make_collection_listener(mailbox):
def __init__(self, mbox):
self.mbox = mbox
+ # See #8083, pixelated adaptor seems to be misusing this class.
+ self.mailbox_name = self.mbox.mbox_name
+
def __hash__(self):
return hash(self.mbox.mbox_name)