[
https://issues.apache.org/jira/browse/TIKA-5076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153435#comment-18153435
]
ASF GitHub Bot commented on TIKA-5076:
--------------------------------------
tballison merged PR #3680:
URL: https://github.com/apache/tika/pull/3680
> 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
> Priority: Minor
> 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)