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

Luis Filipe Nassif commented on TIKA-2454:
------------------------------------------

Those look like 4 variants of the (container) mbox format. But all of them 
contain rfc822 emails, which detection can fail as you have already noted on 
TIKA-2042 and TIKA-879. I propose changing line 105 of MBoxParser to:
{code}
mailMetadata.set(Metadata.CONTENT_TYPE_OVERRIDE, "message/rfc822");
{code}
Will do if [[email protected]] does not beat me...

> Emails extracted from PSTs detected as unexpected file types
> ------------------------------------------------------------
>
>                 Key: TIKA-2454
>                 URL: https://issues.apache.org/jira/browse/TIKA-2454
>             Project: Tika
>          Issue Type: Bug
>          Components: detector, parser
>    Affects Versions: 1.16
>            Reporter: Matthew Caruana Galizia
>             Fix For: 1.17
>
>
> This issue is severe. The Outlook PST parser extracts a string for the body 
> of every email and passes that string to the {{EmbeddedDocumentExtractor}}.
> However, no content type is set on the {{Metadata}} object passed to the 
> extractor. Therefore, if for example, the body of the email starts with the 
> string "From John Smith." (for example, when an email was forwarded), then 
> body of the email is detected as {{application/mbox}} and parsed as though it 
> were an mbox file.
> I think the immediate fix for this issue is to force the type of the email to 
> {{text/plain}} and for it to be parsed as such.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to