Skip to main content

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

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.2

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.2
File Size Uploaded
paperlessngx_mail_parser-3.0.2.tar.gz 19.3 kB Details

Built distribution (wheel)

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

Total release size: 39.6 kB

Release files / paperlessngx_mail_parser-3.0.2.tar.gz

Download URL paperlessngx_mail_parser-3.0.2.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b9af70c1df81137d48b15568cd23c20c2506d604a797ca534ac2044ff8fc627b
BLAKE2b-256 checksum
How to use checksums
a918a7f5fd713db6f98dd89dc3b921d4e10b8c01c08f383686138655d1c2b3d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

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

Download URL paperlessngx_mail_parser-3.0.2-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a92e3d1a583c27a80e72d33ef19259565840c204d70a9a12d39f851337a8158c
BLAKE2b-256 checksum
How to use checksums
96f41a02438b80a946178381ac3a605530dcfcefcaf14e17cbcdc56e859b0087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

3.0.2 This release

2 release files

3.0.1

2 release files

3.0.0

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