mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-13 10:03:49 -05:00
15 lines
334 B
Python
15 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",
|
|
},
|
|
}
|