mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
15 lines
320 B
Python
15 lines
320 B
Python
|
|
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",
|
||
|
|
},
|
||
|
|
}
|