Skip to main content

Alternative e-mail parser for Paperless-ngx

This parser can be used as an alternative to the default e-mail parser provided by Paperless-ngx.

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

All python modules used by this parser should already be included in your Paperless-ngx installation.

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

  1. Install using PyPI

    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
    
  2. Add this parser to the PAPERLESS_APPS environment variable, e.g. in your paperless.conf: PAPERLESS_APPS="paperlessngx-mail-parser.apps.MailparserConfig"

Metadata

Release files for paperlessngx_mail_parser 2.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 2.0.0
File Size Uploaded Provenance Actions
paperlessngx_mail_parser-2.0.0.tar.gz 19.6 kB Without provenance Details for paperlessngx_mail_parser-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paperlessngx_mail_parser 2.0.0
File Interpreter ABI Platform Actions
paperlessngx_mail_parser-2.0.0-py3-none-any.whl Python 3 none any Details for paperlessngx_mail_parser-2.0.0-py3-none-any.whl

Total release size: 41.0 kB

Release files / paperlessngx_mail_parser-2.0.0.tar.gz

Download URL paperlessngx_mail_parser-2.0.0.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
77e5969ee22fd0657577fce26e472e706d637f1c12d9bd60c27b281598ce5c69
BLAKE2b-256 checksum
How to use checksums
347f07533decd1ce12524c0522e034336b2cc0476137c99adb5d26450255dff8
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-2.0.0-py3-none-any.whl

Download URL paperlessngx_mail_parser-2.0.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
397ad4639775e80764cb0b4e730244626d0855ba20a08ec2028f54a5bc819151
BLAKE2b-256 checksum
How to use checksums
8359c36abb942d5ac019bc30f977c09a3e0a222907a3b31f466c6c1922b58ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for paperlessngx_mail_parser 2.0.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.

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