You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tyler Palsulich (JIRA)" <ji...@apache.org> on 2015/03/20 20:49:38 UTC

[jira] [Commented] (TIKA-1267) Improve Mbox file detection

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

Tyler Palsulich commented on TIKA-1267:
---------------------------------------

The current definition is:
{code}
  <mime-type type="application/mbox">
    <sub-class-of type="text/plain"/>
    <glob pattern="*.mbox"/>
  </mime-type>
{code}

I think it would be too general to call all text files that start with {{"From "}} to be identified as {{application/mbox}}.

> Improve Mbox file detection
> ---------------------------
>
>                 Key: TIKA-1267
>                 URL: https://issues.apache.org/jira/browse/TIKA-1267
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 1.5
>            Reporter: Luis Filipe Nassif
>            Priority: Minor
>
> Could we add to application/mbox mime-type definition code below:
> {code}
> <magic priority="70">
> <match value="From " type="string" offset="0"/>
> </magic>
> {code}
> Or is it too common out there?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)