[kmail2] [Bug 390002] Message viewer: attached .doc file is shown as encrypted

Jonathan Marten bugzilla_noreply at kde.org
Thu Sep 12 08:26:26 BST 2019


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

--- Comment #3 from Jonathan Marten <jjm at keelhaul.me.uk> ---
Have done some investigating and found that the root cause is the MS Word
binary format being detected as PGP encrypted data, in
EncryptedBodyPartFormatter::process().  The result of GpgME::data().type() is
returned as GpgME::Data::PGPOther for the attachment part.

One solution that I have found so far is to remove the preset formatter

 insert(QStringLiteral("application/octet-stream"),
EncryptedBodyPartFormatter::create());

from
BodyPartFormatterFactoryPrivate::messageviewer_create_builtin_bodypart_formatters().
 The detection from the binary data is too sensitive for the catch-all MIME
type.  This still allows PGP encrypted parts to be detected as long as they
have the correct MIME type (which any decent sending mailer should use, it's
2019 now).

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


More information about the Kdepim-bugs mailing list