diff options
author | drebs <drebs@leap.se> | 2013-11-12 11:49:43 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-11-12 11:49:43 -0200 |
commit | a63fb0de4f9660dac955c6669860ce35c72fbf9e (patch) | |
tree | cc1833e9c3ec3237a3070187cfa6dfc9a284c7b3 /src/leap/mail | |
parent | 24b78557e8a1d31971a6b8c1fcc1269d7c5e4709 (diff) |
Remove 'multipart/encrypted' header after decrypting incoming mail. Closes #4454.
Diffstat (limited to 'src/leap/mail')
-rw-r--r-- | src/leap/mail/imap/fetch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/mail/imap/fetch.py b/src/leap/mail/imap/fetch.py index 4d47408..bc04bd1 100644 --- a/src/leap/mail/imap/fetch.py +++ b/src/leap/mail/imap/fetch.py @@ -387,6 +387,8 @@ class LeapIncomingMail(object): decrdata = decrdata.encode(encoding, 'replace') decrmsg = parser.parsestr(decrdata) + # remove original message's multipart/encrypted content-type + del(origmsg['content-type']) # replace headers back in original message for hkey, hval in decrmsg.items(): try: |