Custom e-mail parser for Paperless-ngx
This parser is based on the default e-mail parser of Paperless-ngx and can be used as an alternative to it.
Features
-
If consumption scope isn't EVERYTHING (i.e. parse mail and attachments separately) include attachments in the archived document where possible. If an attachment can't be converted to pdf, include a corresponding note in the archived version. Signature attachments (mime type: application/x-pkcs7-signature) are always excluded.
-
Place a header in front of the pdf containing the text version of the e-mail as well as in front of the html-version.
-
Only include either the text or html version of the e-mail in the archived document. The PDF-Layout values for Paperless-ngx PdfLayout.TEXT_HTML and PdfLayout.HTML_TEXT are therefore interpreted as "if available, use text, else use html version" resp. "if available, use html, else use text version".
-
Preserve original html e-mail content as far as possible. PDF/A version is created using ghostscript preserving links included in the e-mail.
Prerequisites
-
Paperless-ngx version 3
-
Ghostscript (
gs) must be available inPATH. It is used for creating the PDF/A version of the archived file if requested, seehttps://docs.paperless-ngx.com/configuration/#PAPERLESS_OCR_COLOR_CONVERSION_STRATEGY
Installation
pip install paperlessngx-mail-parser
For docker based installations use custom container initialization as described here: https://docs.paperless-ngx.com/advanced_usage/#custom-container-initialization
Place a script with the following content in the directory for your container initialization scripts and make it executable:
#!/bin/bash
pip install paperlessngx-mail-parser
Metadata
Release files for paperlessngx_mail_parser 3.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paperlessngx_mail_parser-3.5.0.tar.gz | 19.8 kB | Without provenance | Details for paperlessngx_mail_parser-3.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paperlessngx_mail_parser-3.5.0-py3-none-any.whl | Python 3 | none | any | Details for paperlessngx_mail_parser-3.5.0-py3-none-any.whl |
Total release size: 40.3 kB
Release files / paperlessngx_mail_parser-3.5.0.tar.gz
| Download URL | paperlessngx_mail_parser-3.5.0.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
053ed8c915ee8f81d5d8209c242344bcf65dd4ac83f683c5d9c1f25fb7714fac
|
|
BLAKE2b-256 checksum How to use checksums |
d53bae67f3454d3af17f83e6f1a9831e74bd85ae7849565cd5ebc854cb1ee925
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / paperlessngx_mail_parser-3.5.0-py3-none-any.whl
| Download URL | paperlessngx_mail_parser-3.5.0-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f525c88a758fd4e3d7d34074526ef03b124ba2906131d23fa3f30aae616f65b7
|
|
BLAKE2b-256 checksum How to use checksums |
c77b9c5f271b6dfa9176082b65b00a9d085af06704370fea1f9f8c1628f5f7e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for paperlessngx_mail_parser 3.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.