Skip to main content

📧 EML → MBOX Converter

✨ Features • 🧰 Usage • 🔑 License

This Python tool converts a directory of .eml email files into a single .mbox mailbox file, suitable for import into email clients such as Mozilla Thunderbird.

Unlike simplistic converters, this script preserves the original MIME structure of each message. This ensures that:

  • email bodies (plain text and HTML) display correctly,
  • multipart messages remain intact,
  • attachments and inline content are preserved,
  • character encodings are handled reliably.

The converter uses Python’s standard mailbox module to produce standards-compliant mbox files, avoiding common issues such as missing message content after import.

✨ Features

  • Converts all .eml files in a folder into a single .mbox
  • Preserves full email structure (headers, MIME parts, attachments)
  • Maintains compatibility with major email clients
  • Robust handling of dates and sender metadata
  • Simple and user-friendly CLI powered by typer
  • Safe and deterministic processing (sorted input files)

🧰 Usage

eml2mbox --eml-folder FOLDER_NAME --output-mbox mailbox.mbox

🔑 License

This package is distributed under the MIT License. This license can be found online at http://www.opensource.org/licenses/MIT.

Disclaimer

This framework is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!

Metadata

Release files for eml2mbox 0.2.1

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

Source distribution (sdist)

Source distribution for eml2mbox 0.2.1
File Size Uploaded Provenance
eml2mbox-0.2.1.tar.gz 3.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 8.0 kB

Release files / eml2mbox-0.2.1.tar.gz

Download URL eml2mbox-0.2.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1325b4a37d94bfa5ec395e75cf53484db4decf111800a1ebbbca8c8e550eb3f7
BLAKE2b-256 checksum
How to use checksums
299190a11988e17ccd45a85fcfd8a8e675b1904f5520531124882203e6e2488f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.14.5 Linux/7.0.12-201.fc44.x86_64

Release files / eml2mbox-0.2.1-py3-none-any.whl

Download URL eml2mbox-0.2.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b654fbe24af59491e42d73108f781104baded8ae35e8838d6c896d6cfbb5ef8
BLAKE2b-256 checksum
How to use checksums
3cc022b95792bb0ef63efba2d7ca7f549403f4a8dedc4cf03053afcdd012a438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.1 CPython/3.14.5 Linux/7.0.12-201.fc44.x86_64

Security for eml2mbox 0.2.1

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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