[jira] [Commented] (TIKA-2042) MBOX file detected wrongly as text/html

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (TIKA-2042) MBOX file detected wrongly as text/html

JIRA jira@apache.org

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

Hudson commented on TIKA-2042:
------------------------------

FAILURE: Integrated in Jenkins build Tika-trunk #1335 (See [https://builds.apache.org/job/Tika-trunk/1335/])
Two more EML header magics from Matthew Caruana Galizia from TIKA-2042 (nick: [https://github.com/apache/tika/commit/0579efe59c35a4db248d8a5547af05fbee3caad4])
* (edit) tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml


> MBOX file detected wrongly as text/html
> ---------------------------------------
>
>                 Key: TIKA-2042
>                 URL: https://issues.apache.org/jira/browse/TIKA-2042
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 1.13
>         Environment: Ubuntu 14.04, Apache Tika 1.13 and 1.14 nightly at the time of this writing
>            Reporter: Vjeran Marcinko
>             Fix For: 1.14
>
>         Attachments: clojure.mbox, mbox_email_section.txt, mbox_header.txt
>
>
> MBOX file doesn't get recognized via "magic detection" mechanism as "application/mbox", but wrongly as "text/html".
> Workaround for this in Tika 1.13 is achieved by placing following in custom-mimetypes.xml, as suggested on mailing list (priority has to be larger than message/rfc822):
> <mime-type type="application/mbox">
>         <magic priority="70">
>             <match value="From " type="string" offset="0"/>
>         </magic>
>         <glob pattern="*.mbox"/>
> </mime-type>
> Sample MBOX file is attached.



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