work in progress Mail parsing

This commit is contained in:
phail 2022-04-19 00:39:00 +02:00
parent cca576f518
commit 027897ff03
5 changed files with 168 additions and 1 deletions

View file

@ -22,3 +22,19 @@ def tika_consumer_declaration(sender, **kwargs):
"text/rtf": ".rtf",
},
}
def get_parser_eml(*args, **kwargs):
from .parsers import TikaDocumentParserEml
return TikaDocumentParserEml(*args, **kwargs)
def tika_consumer_declaration_eml(sender, **kwargs):
return {
"parser": get_parser_eml,
"weight": 10,
"mime_types": {
"message/rfc822": ".eml",
},
}