[kmail2] [Bug 343795] Accessing S/MIME encrypted attachments fails

Chris via KDE Bugzilla bugzilla_noreply at kde.org
Sat Jan 9 16:19:53 GMT 2016


https://bugs.kde.org/show_bug.cgi?id=343795

Chris <ichrispa at core-vector.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ichrispa at core-vector.net

--- Comment #4 from Chris <ichrispa at core-vector.net> ---
I can confirm this bug /w OpenSUSE 42.1, KMail 4.14.10

The error appears to be only caused by SMIME encrypted Mail sent with MS
Outlook. The mail body contains a link to "attachement:x:y.z?place=body" for
each attachement, with correct names being shown, but clicking them or using
"save attachements" has no effect. The later shows a "No attachements found"
message.

A workaround is to save the message's source, then run
$ openssl smime -decrypt -in mail.raw -inkey path/to/my/crtkey.pem > mail.decr
removing any mail headers, then run
$ base64 -d --ignore-garbage mail.decr > mail.d64
as suggested. Split the Mail's attachement out manually using
$ csplit --prefix mail.d64_part mail.d64 '/------=_NextPart_/' '{*}'
and then decoding individual attachements by removing the header and
subsequently running
$ base64 -d --ignore-garbage mail.d64_partXY > attachment.name

Some base64 attachements do contain non-ASCII sequences, which is clearly a bug
on the sender side, not KDE (maybe these can be "cleaned" by KMail prior to
decoding?).

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list