summaryrefslogtreecommitdiff
path: root/src/leap/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-11-12 23:24:59 -0200
committerKali Kaneko <kali@leap.se>2013-11-12 23:24:59 -0200
commitdddc6ff461ffa85749900b6a85a3296d6e609d60 (patch)
treecc1833e9c3ec3237a3070187cfa6dfc9a284c7b3 /src/leap/mail
parent24b78557e8a1d31971a6b8c1fcc1269d7c5e4709 (diff)
parenta63fb0de4f9660dac955c6669860ce35c72fbf9e (diff)
Merge remote-tracking branch 'drebs/bug/4454_remove-multipart-encrypted-header-after-decrypting' into develop
Diffstat (limited to 'src/leap/mail')
-rw-r--r--src/leap/mail/imap/fetch.py2
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: