[
https://issues.apache.org/jira/browse/TIKA-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17365489#comment-17365489
]
Danny McKinney commented on TIKA-3445:
--------------------------------------
I am looking to override the current mime type for RFC822, so we can adjust for
our needs. Basically I only need to change minmatch from 2 to 3 and this will
work for our situation. I tried to use MimeTypesFactory.CUSTOM_MIMES_SYS_PROP
with adding the changed values to a custom xml file and point the property to
that file. This does not seem to be working for me. Is there any documentation
or code that you can point me to to read, so that I can override these settings
for the RFC822 mime. type.
> Extension reading it as eml instead of txt when headers are not present
> -----------------------------------------------------------------------
>
> Key: TIKA-3445
> URL: https://issues.apache.org/jira/browse/TIKA-3445
> Project: Tika
> Issue Type: Bug
> Components: core, detector, metadata, mime, parser
> Affects Versions: 1.25, 1.26
> Reporter: Vamsi Molli
> Priority: Blocker
> Fix For: 1.24.1
>
> Attachments: test_sample_message (1).txt
>
>
> The attached txt file doesn't have starting headers it is treating as .eml
> file but it should be .txt.
> stream = TikaInputStream.get(fis = new FileInputStream(paths));stream =
> TikaInputStream.get(fis = new FileInputStream(paths));
> metadata.add(Metadata.RESOURCE_NAME_KEY, paths); MediaType mediaType =
> detector.detect(stream, metadata);
> MediaType detect(InputStream input, Metadata metadata) throws IOException;
--
This message was sent by Atlassian Jira
(v8.3.4#803005)