Repository navigation
Releases
v0.3.2
Paperless-ngx Mail Header v0.3.2 restores HTML-mail compatibility with Paperless-ngx 3.5.0 while retaining verified 3.3.0 behavior. The wrapper forwards native HTML-converter keyword arguments, including convert_to_pdfa=False; final PDF/A, MIME, attachments, OCR, Gotenberg and Tika remain native.
Tested main commit: 98d3edddb574f4c5d40db2053eb7eecf2a3e37d9 (source). PR #15 was merged only after all current-head gates passed.
Final-main validation
- Unit/package checks: 140 tests passed on each of Python 3.12, 3.13 and 3.14; translations, wheel/sdist contents, licenses, parser entry point and strict Twine metadata checks passed.
- Real Paperless integration: 8/8 scenarios passed: Paperless 3.3.0 and 3.5.0, each with English/German in Europe/Berlin, English in America/New_York and English with the time-zone variable absent (effective UTC). Gotenberg 8.37; Tika image 3.3.1.0.
- 208 successful synthetic documents and 16 expected missing-From rejections across 16 disposable native/plugin stacks. Original bytes, native searchable text, text-only/PDF delegation, HTML header placement, CID/external images, Unicode/escaping and DST timestamps passed.
- CodeQL: Actions and Python analyses passed. Dependency Graph also passed.
- All 208 PDF SHA-256 values were rechecked; PNG evidence was visually inspected. All PDFs declare PDF/A-2B in XMP, with the native pipeline/source and OCRmyPDF success logs reviewed. No independent veraPDF conformance certification was performed. Upstream nonfatal Ghostscript complex-script/ToUnicode warnings and Tesseract diagnostics occurred for the separate PDF fixture; both stacks completed and retained the tested searchable content. Complex-script OCR quality is outside this verification.
Shared tested wheel SHA-256: edf84832a03a09ceadf6a81d7f1295dd01ac8094bbfb758c207527c9e1c081e3. Every scenario in integration-summary.json names this same wheel and the final commit.
Installation and defaults
Download the wheel and SHA256SUMS.txt from this release, verify the hash, then install with --no-deps into the Python environment used by Paperless and restart the parser-loading services. Python >=3.12 is required.
Supported header languages: English and German. English is the default; set PAPERLESS_MAIL_HEADER_LANGUAGE=de for German. Header time follows Paperless PAPERLESS_TIME_ZONE; UTC when unset. Set PAPERLESS_TIME_ZONE=Europe/Berlin to retain the time basis used before 0.3.1. Existing PDFs are unchanged.
Evidence and scope
Assets include the tested wheel, source distribution, aggregate integration-summary.json, synthetic PDF/PNG evidence archive with per-file hashes, and SHA256SUMS.txt covering all four assets. These are disposable synthetic REST/Celery/registry/Tika/Gotenberg tests. IMAP fetching, mail-rule attachment extraction, other Paperless versions and production deployment were not tested. The historical operator-reported 0.3.1/3.3.0 production observation remains separate.
No PyPI upload or production installation change is part of this release. Previous releases, tags and assets are preserved.
v0.3.1
0.3.1 — Use the Paperless time zone
The inserted HTML header now uses the running Paperless TIME_ZONE setting, configured through PAPERLESS_TIME_ZONE. If no time zone is configured, it uses UTC, matching Paperless. Language and time zone remain independent; no separate plugin variable or new runtime dependency is introduced.
Upgrade behavior
Earlier plugin versions always displayed the inserted date in Europe/Berlin. To preserve that behavior, configure Paperless with:
PAPERLESS_TIME_ZONE=Europe/BerlinInstallations already using Europe/Berlin retain their header timestamps. Other configured zones, for example America/New_York, now apply to the header, including their daylight-saving rules. Existing PDFs retain their previously generated timestamps. This release does not change or deploy to production automatically.
English remains the default header language. To retain German labels/date formatting, keep:
PAPERLESS_MAIL_HEADER_LANGUAGE=deSee configuration and translation contributions.
Validation and assets
78 offline tests pass on Python 3.12, 3.13 and 3.14, alongside catalog, build, source/wheel and strict metadata checks. Regression cases include Berlin/New York DST transitions, a previous calendar day, Kathmandu's fractional offset, effective-setting precedence and UTC fallback.
The final merged-commit real-stack workflow tests the same wheel in four scenarios: English/Berlin, German/Berlin, English/New York and English with PAPERLESS_TIME_ZONE absent (effective UTC). Each scenario records actual Paperless settings and verifies 13 valid synthetic documents per native/plugin stack plus matching missing-sender rejection on Paperless-ngx 3.3.0, Gotenberg 8.37 and Tika image 3.3.1.0. Original bytes, indexing, native plain-text/PDF delegation, images, localized timestamps and header placement pass. Synthetic PDF output was visually reviewed; Berlin previews match the reviewed 0.3.0 output.
integration-summary.json binds all four scenarios to commit 6971bff10c92a2c102e79fde78fdb3d2ba3539e2 and wheel SHA-256 4de51242454b5d90b17cc3ae05f83ffd00439bfb5a78968ae19023d1d95d3dcc. integration-evidence.zip contains synthetic PDFs/PNGs and version/settings evidence. SHA256SUMS.txt covers the package and evidence assets.
The PDF attachment is uploaded separately; IMAP fetching, mail-rule attachment extraction, other Paperless versions and production deployment are outside this test scope. No PyPI upload is included.
v0.3.0
0.3.0 — English default and contributor-ready i18n
Upgrade: retain German explicitly
The inserted HTML header now defaults to From, To, Date, Subject and a numeric English date format. To keep the previous German output, set this in the Paperless service/container environment before restarting the consumer, workers and webserver:
PAPERLESS_MAIL_HEADER_LANGUAGE=deThis selects Von, An, Datum, Betreff and the previous 29.10.2026, 10:15 Uhr style. Europe/Berlin remains unchanged for both languages. Existing PDFs keep their import-time language; no production installation is upgraded automatically.
Translation contributions
- English source strings and German as the first shipped gettext translation.
- Add another locale through a PR containing a complete
.pocatalog and its compiled.mo. No Python language registry or workflow edit is needed. - Runtime discovery and the real-stack CI matrix automatically include contributed catalogs.
- CI checks completeness, fuzzy flags, date/direction tokens, reproducible compiled files and wheel/sdist resources. Babel is a development tool; there is no new runtime dependency.
- Logical text alignment, wrapping labels and bidirectional value isolation prepare the renderer for future RTL catalogs. RTL/font/linguistic review remains part of those future PRs.
See Contributing translations and configuration.
Verification and assets
58 offline tests and catalog/build/package checks pass on Python 3.12, 3.13 and 3.14. The final merged-commit real-stack matrix tested this exact same wheel for English with no setting and German with de, using real Paperless-ngx 3.3.0 / Python 3.14.8, Gotenberg 8.37 and Tika image 3.3.1.0. Each language job produced 13 valid documents per native/plugin stack and matched native rejection of a message without a sender. Original bytes, indexing, native plain-text/PDF delegation, images, header placement and DST timestamps were checked. Synthetic PDF output was visually reviewed; German output retained the reviewed 0.2.0 appearance.
integration-summary.json binds both languages to commit 51b371c1c1ddd2b7da1e3f54e2ccd214988c0c36 and wheel SHA-256 1b85b8f6a05e070fdac48159fa95d3d0a76b74d7ce82bdee92a34d5f65d70f79. integration-evidence.zip contains synthetic PDFs/PNGs and version information; SHA256SUMS.txt covers all assets. A temporary French catalog validated the contributor workflow but is not shipped in this release.
The attachment PDF was uploaded separately. IMAP fetching, mail-rule attachment extraction, other Paperless releases and production deployment were not exercised. The original email body remains on the native parser path. No PyPI upload is included.
v0.2.0
Paperless-ngx Mail Header 0.2.0
First public release of this unofficial native mail-parser wrapper. It adds four escaped rows — Von, An, Datum, Betreff — above HTML email content, formatting timestamps in Europe/Berlin. Plain-text rendering, CID resources, attachment handling and PDF conversion remain delegated to Paperless.
Changes from the local 0.1.0 package
- Public project metadata, documentation, CI and corrected GPL-3.0-or-later software licensing; documentation and synthetic examples use CC BY-SA 4.0.
- Fix header insertion when mixed non-LF line separators precede an LF.
- Display an unavailable date instead of failing when Berlin timezone conversion exceeds Python's datetime range.
- Include complete source-distribution documentation, license texts, exact package checks and SHA-256 checksums.
Verification
- 40 offline tests and strict build/package checks pass on Python 3.12, 3.13 and 3.14.
- Real-stack integration of the final merged commit: independent native and plugin-enabled Paperless 3.3.0, Python 3.14.8, Gotenberg 8.37, Tika image 3.3.1.0.
- Each stack produced 13 documents from valid synthetic uploads and identically rejected one message without the mandatory From header.
- Original bytes, searchable text, document counts, real PDF headers/dates, CID and controlled external images, plain-text fallback and separate PDF uploads were checked against the native baseline.
- All 13 candidate PDF pages were visually inspected. The example and evidence contain fictional data only.
The release wheel is exactly the wheel tested by that integration workflow. integration-summary.json records its SHA-256 and commit dd55aa9c061737a3a8528e5bd138640c695850f0; integration-evidence.zip preserves synthetic PDFs/PNGs and version information. SHA256SUMS.txt covers the wheel, source distribution and evidence files.
Installation and scope
Download the wheel and checksums from this release. Verify the wheel's SHA-256, then install using --no-deps in the Python environment actually used by Paperless and restart the parser-loading services. See installation and rollback and the integration report.
Verified scope is Paperless-ngx 3.3.0 with the synthetic matrix above. The native mail parser in 3.3.4 was source-inspected and matches 3.3.0, but other Paperless releases were not live-tested. External IMAP fetching and mail-rule attachment extraction were not exercised; the PDF attachment was imported separately. The maintainer's production installation was not accessed or upgraded.
No PyPI upload or automatic production deployment is included. This independent community extension is not affiliated with or officially supported by Paperless-ngx.