Bug 300937 - Attachments within S/MIME mails which are "both" encrypted and signed cannot be saved
Summary: Attachments within S/MIME mails which are "both" encrypted and signed cannot ...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: crypto (show other bugs)
Version: 4.8.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-31 14:23 UTC by Yuri Carvalho
Modified: 2013-10-21 16:50 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Carvalho 2012-05-31 14:23:54 UTC
Attachments within S/MIME mails which are "both" encrypted and signed cannot be saved. Below follows an example of some fields of the e-mail header:

Content-Type: application/pkcs7-mime; name="smime.p7m"; smime-type="enveloped-data"
Content-Disposition: attachment; filename="smime.p7m"
Content-Transfer-Encoding: base64
MIME-Version: 1.0

I have verified the same problem even when the mail is sent from different clients (Outlook or KMail itself).

This is similar to Bug 294272, but in this case it is related to S/MIME messages which are "both" signed and encrypted. If the message is only signed, or only encrypted, the problem does not occur.


Reproducible: Always

Steps to Reproduce:
Receive an S/MIME message, which is both signed and encrypted, containing an attachment.
Actual Results:  
An attachment is displayed as a link inside the message window, but the link cannot be opened / downloaded. There does not seem to be any way to view or save the attachment.

Expected Results:  
The link / attachment should be downloadable / saveable.

Similar to Bug 294272, but in this case it is related to S/MIME messages which are both signed and encrypted. If the message is only signed, or only encrypted, the problem does not occur.
Comment 1 Thomas Arend 2012-08-23 18:47:30 UTC
Can confirm this bug is still in 4.8.5. My mails come from a Lotus Notes client 7.0.3 (since Kmail2 only the second worst mail client in the world - its really not a mail client which is only a little excuse).

My work around:

1. Save mail as "msg.mbox". 
2. Import file in Thunderbird
3. Save the attachments.

Thanks to Mozilla for a working mail client!

Thomas
Comment 2 Myriam Schweingruber 2012-08-25 15:16:55 UTC
Confirmed by second user.
Comment 3 Roland Wolters 2013-10-02 11:20:34 UTC
This bug is still valid for the latest KDE, KDE 4.11.1 on Kubuntu.
Comment 4 regi.hops 2013-10-03 18:46:38 UTC
Same with KDE 4.11.2 on openSUSE.
Comment 5 Sandro Knauß 2013-10-21 16:50:13 UTC
Git commit bbbdbc2180036040cac2b66492e6f0fd01c2b28c by Sandro Knauß.
Committed on 21/10/2013 at 00:47.
Pushed by knauss into branch 'KDE/4.11'.

Fix 286481 - Unable to open attachments in encrypted messages

The node has to get a correct extra content and the filename must be
correctly point to the attachments inside the encrypted message.
Related: bug 286481
FIXED-IN: 4.11.3
REVIEW: 113361

M  +2    -3    messageviewer/viewer/nodehelper.cpp
M  +1    -1    messageviewer/viewer/objecttreeparser.cpp

http://commits.kde.org/kdepim/bbbdbc2180036040cac2b66492e6f0fd01c2b28c