Bug 469681 - On S/MIME encrypted & signed mail, KMail does not show attachment
Summary: On S/MIME encrypted & signed mail, KMail does not show attachment
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.22.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-12 22:03 UTC by zocker.network
Modified: 2023-05-12 22:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Representative S/MIME encrypted content (1.58 KB, text/plain)
2023-05-12 22:03 UTC, zocker.network
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zocker.network 2023-05-12 22:03:50 UTC
Created attachment 158898 [details]
Representative S/MIME encrypted content

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Someone sent me (most probably from Apple Mail) 

STEPS TO REPRODUCE
1. Receive an mail, encrypted & signed with S/MIME by someone else, signature is valid, the other party sent an attachment with that mail
2. Open E-Mail

OBSERVED RESULT
See that no attachment is listed, neither in plain text nor HTML mode. But the mail is big enough to contain an attachment and Thunderbird (after changing to HTML mode, read additional information) can recognize the attachment in the exact same mail.

EXPECTED RESULT
See the attachment.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian GNU/Linux testing/unstable
(available in About System)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
My KMail is configured to normally display all mails in their plain text version. Thunderbird had a very similar bug with the exact same mail, but the attachment became visible on Thunderbird after changing the display mode to HTML. Using the banner on the left of the mail to change to HTML mode on KMail did not fix it there.

A representative version of the mail after manual decryption of the S/MIME encrypted content (only the "Content-*" headers) as attached as text file. Comments and replaced content are marked with `[[ ]]`. The number of blank lines in between the contents are correct.
Comment 1 zocker.network 2023-05-12 22:06:19 UTC
EDIT SUMMARY: Someone sent me a mail (most probably from Apple Mail) with an attachment, full mail is signed & encrypted with a valid S/MIME certificate, but KMail fails to recognize & display the attachment, which is a normal PDF.
Comment 2 zocker.network 2023-05-12 22:06:57 UTC
Link to similar bug in Thunderbird with the exact same mail: https://bugzilla.mozilla.org/show_bug.cgi?id=1832905