add eml parser to paperless_mail

This commit is contained in:
phail
2022-04-29 22:58:11 +02:00
parent c1efe11cf3
commit 47189643ff
16 changed files with 2293 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
def get_parser(*args, **kwargs):
from .parsers import MailDocumentParser
return MailDocumentParser(*args, **kwargs)
def mail_consumer_declaration(sender, **kwargs):
return {
"parser": get_parser,
"weight": 20,
"mime_types": {
"message/rfc822": ".eml",
},
}