Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2042

MBOX file detected wrongly as text/html

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.13
    • 1.14
    • None
    • None
    • Ubuntu 14.04, Apache Tika 1.13 and 1.14 nightly at the time of this writing

    Description

      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.

      Attachments

        1. clojure.mbox
          199 kB
          Vjeran Marcinko
        2. mbox_email_section.txt
          2 kB
          Matthew Caruana Galizia
        3. mbox_header.txt
          1 kB
          Matthew Caruana Galizia

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vjeran@tis.hr Vjeran Marcinko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: