[ 
https://issues.apache.org/jira/browse/TIKA-5076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149932#comment-18149932
 ] 

Tim Allison commented on TIKA-5076:
-----------------------------------

Thank you for opening this. Every corpus differs, but do you have corpus counts 
on when html exists but is NOT the native body?

How's this for a fix: we'll add the value of the native body flag, and we'll 
add "extractAllAlternatives" like we have for .eml.

Every user will get the flag value, and the forensics folks can get all 
alternatives and do the math to figure out which one was presented and they'll 
have the other bodies available, too?

 

> 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)

Reply via email to