You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Luís Filipe Nassif (Jira)" <ji...@apache.org> on 2022/05/20 13:22:00 UTC
[jira] [Comment Edited] (TIKA-3687) Email file detected as text/html
[ https://issues.apache.org/jira/browse/TIKA-3687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17540122#comment-17540122 ]
Luís Filipe Nassif edited comment on TIKA-3687 at 5/20/22 1:21 PM:
-------------------------------------------------------------------
lfcnassif commented on PR #520:
URL: [https://github.com/apache/tika/pull/520#issuecomment-1132891085]
@SchwingSK I detected some false positives (see TIKA-3771) after this. The <match value="\nX-" type="string" offset="0:1024"/> rule is not needed to detect the EML sample you provided in TIKA-3687. Not sure if this is the best option, but if we remove it, will EML files in your dataset continue to be detected?
was (Author: githubbot):
lfcnassif commented on PR #520:
URL: https://github.com/apache/tika/pull/520#issuecomment-1132891085
@SchwingSK I detected some false positives (see TIKA-3687) after this. The <match value="\nX-" type="string" offset="0:1024"/> rule is not needed to detect the EML sample you provided in TIKA-3687. Not sure if this is the best option, but if we remove it, will EML files in your dataset continue to be detected?
> Email file detected as text/html
> --------------------------------
>
> Key: TIKA-3687
> URL: https://issues.apache.org/jira/browse/TIKA-3687
> Project: Tika
> Issue Type: Bug
> Affects Versions: 2.3.0
> Reporter: Thierry Guérin
> Priority: Minor
> Fix For: 2.4.0
>
> Attachments: testRFC822-ARC.eml
>
>
> The attached email (which I redacted from a real email received from Office365) is detected a HTML.
> This is because it contains ARC * headers, but they're not the first one, so the matcher that looks for ARC headers fails, and the matcher for regular 'From' header also fails because the 'From' headers occurs after 1024 characters.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)