From 13927ac178c00b729d8d660107f72d878879a5c3 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Sun, 20 Mar 2016 19:52:46 +0100 Subject: [bug] Decode attached keys so they are recognized by keymanager - Resolves: #7977 --- changes/next-changelog.rst | 1 + src/leap/mail/incoming/service.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changes/next-changelog.rst b/changes/next-changelog.rst index 40efb19..f89af89 100644 --- a/changes/next-changelog.rst +++ b/changes/next-changelog.rst @@ -22,6 +22,7 @@ Bugfixes ~~~~~~~~ - `#7861 `_: Use the right succeed function for passthrough encrypted email. - `#7898 `_: Fix IMAP fetch headers +- `#7977 `_: Decode attached keys so they are recognized by keymanager. - Fix the get_body logic for corner-cases in which body is None (yet-to-be synced docs, mainly). - `#1235 `_: Description for the fixed stuff corresponding with issue #1235. diff --git a/src/leap/mail/incoming/service.py b/src/leap/mail/incoming/service.py index 98ed416..c7d194d 100644 --- a/src/leap/mail/incoming/service.py +++ b/src/leap/mail/incoming/service.py @@ -749,7 +749,7 @@ class IncomingMail(Service): for attachment in attachments: if MIME_KEY == attachment.get_content_type(): d = self._keymanager.put_raw_key( - attachment.get_payload(), + attachment.get_payload(decode=True), OpenPGPKey, address=address) d.addCallbacks(log_key_added, failed_put_key) -- cgit v1.2.3