tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TIKA-1602) Detecting standards-non-compliant emails as message/rfc822
Date Wed, 01 Jul 2015 13:23:06 GMT

     [ https://issues.apache.org/jira/browse/TIKA-1602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Chris A. Mattmann resolved TIKA-1602.
    Resolution: Fixed

Patch applied! Thanks [~jeremybmerrill]!

[chipotle:~/tmp/tika1.10] mattmann% svn commit -m "Fix for TIKA-1602: Detecting standards-non-compliant
emails as message/rfc822 contributed by Jeremy B. Merrill <jeremy.merrill@nytimes.com>
this closes #40."
Sending        CHANGES.txt
Sending        tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
Transmitting file data ..
Committed revision 1688647.
[chipotle:~/tmp/tika1.10] mattmann% 

> Detecting standards-non-compliant emails as message/rfc822
> ----------------------------------------------------------
>                 Key: TIKA-1602
>                 URL: https://issues.apache.org/jira/browse/TIKA-1602
>             Project: Tika
>          Issue Type: New Feature
>          Components: mime
>            Reporter: Jeremy B. Merrill
>            Assignee: Chris A. Mattmann
>            Priority: Minor
>             Fix For: 1.10
>         Attachments: 036491.txt.zip
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> Tika does not properly detect certain emails as `message/rfc822` if they're slightly
standards-non-compliant and begin with `Status: ` as the first header. I've added `Status:
` as a magic detection line in tika-mimetypes.xml. 
> This solves my problem and does not appear to cause unit test failures. I have not yet
run the tika-batch tests.
> As further information, the emails that are processed incorrectly come from dumps directly
from various US public officials' mailservers. The dumps, I believe since they're not intended
to be transmitted over the wire, sometimes are slightly non-compliant. 
> It's important to note that Tika (and the underlying library, James Mime4J) do properly
*parse* these emails, despite the non-compliant header. The problem is getting Tika to *detect*
the file as an email so that Mime4J gets chosen to parse it.
> Pull request on Github at https://github.com/apache/tika/pull/40

This message was sent by Atlassian JIRA

View raw message