mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 23:05:42 +01:00
14 lines
334 B
Python
14 lines
334 B
Python
def get_parser(*args, **kwargs):
|
|
from paperless_mail.parsers import MailDocumentParser
|
|
|
|
return MailDocumentParser(*args, **kwargs)
|
|
|
|
|
|
def mail_consumer_declaration(sender, **kwargs):
|
|
return {
|
|
"parser": get_parser,
|
|
"weight": 20,
|
|
"mime_types": {
|
|
"message/rfc822": ".eml",
|
|
},
|
|
}
|