-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.13
-
Fix Version/s: 1.14
-
Component/s: None
-
Labels:None
-
Environment:
Ubuntu 14.04, Apache Tika 1.13 and 1.14 nightly at the time of this writing
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.