Gregory Lepore created TIKA-5076:
------------------------------------
Summary: Outlook MSG parser ignores PidTagNativeBody when an HTML
alternative is present.
Key: TIKA-5076
URL: https://issues.apache.org/jira/browse/TIKA-5076
Project: Tika
Issue Type: Bug
Components: parser
Affects Versions: 4.2.0
Reporter: Gregory Lepore
Attachments: html.msg, plain.msg, rtf.msg
Outlook MSG parser chooses HTML over the body declared by PidTagNativeBody
In Tika 4.2.0, OutlookExtractor in tika-parser-microsoft-module returns the
HTML body when an MSG declares a usable plain-text or RTF body as its native
format. The attached MSGs contain different text in each body, so the choice
changes the extracted content.
Steps to reproduce
Parse the three attached synthetic MSGs with Tika 4.2.0’s OfficeParser. Inspect
the extracted XHTML and MAPI.BODY_TYPES_PROCESSED.
Tika reports HTML for all three. When the MSG declares a native body and that
body can be read, Tika should extract that representation.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)