Skip to main content

Alternative e-mail parser for Paperless-ngx v3.0.0 and above

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

Ghostscript ist used for creating PDF/A version of archived file if requested, see

https://docs.paperless-ngx.com/configuration/#PAPERLESS_GS_BINARY

https://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

Release files for paperlessngx-mail-parser 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paperlessngx-mail-parser 3.0.0
File Size Uploaded
paperlessngx_mail_parser-3.0.0.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paperlessngx-mail-parser 3.0.0
File Interpreter ABI Platform
paperlessngx_mail_parser-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.3 kB

Release files / paperlessngx_mail_parser-3.0.0.tar.gz

Download URL paperlessngx_mail_parser-3.0.0.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a59854c46f7e6c7ea2a3be72431c2afe4551608f2ff8c8bde0f37ff3e9c9ce24
BLAKE2b-256 checksum
How to use checksums
ffe2f2b622df08085a6f404ad2f645053c4a43420038fb2f3c9f69054126287f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / paperlessngx_mail_parser-3.0.0-py3-none-any.whl

Download URL paperlessngx_mail_parser-3.0.0-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8151cbef770da0f0220dc7971f6da00bab9d60011f6cb7cabed90bc83c756be0
BLAKE2b-256 checksum
How to use checksums
c7d4c65fe8308ccd66a763910e912912c0cc3474aa29f6e30f04d74966f88140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

3.0.2

2 release files

3.0.1

2 release files

This release

3.0.0 This release

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page