Home GnuPG
Diffusion GpgOL b8d651c4d083

MAPI look into tnef attachments to detect protocol

Description

MAPI look into tnef attachments to detect protocol

* src/mapihelp.cpp (mapi_get_first_attach_data): New.
(change_message_class_ipm_note_smime): Remove ms-tnef handling.
Add multipart/signed protocol support for smime.
Warn if encrypted fallback is used.
(change_message_class_ipm_note_smime_multipartsigned): Remove
ms-tnef handling.
(parse_header_data): New helper factored out form
(mapi_get_message_content_type): Handle ms-tnef wrapping.

If we have a mail with content-type ms-tnef we now
look into the tnef attachment to parse the protocol
for multipart/signed.

While Outlook makes the original content type available
through API (get_first_attach_mime_tag) it does not
provide the protocol.

As we need this information early on for display purposes
we now look into the attachment.

Details

Provenance
aheineckeAuthored on Mar 18 2019, 2:37 PM
Parents
rOb69d2183e148: Add the generic MSGTYPE_SMIME in isSMIME_m
Branches
Unknown
Tags
Unknown
Tasks
T4267: X.509 mails will not be decrypted