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!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eml2mbox-0.2.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eml2mbox-0.2.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file eml2mbox-0.2.1.tar.gz.

File metadata

  • Download URL: eml2mbox-0.2.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.14.5 Linux/7.0.12-201.fc44.x86_64

File hashes

Hashes for eml2mbox-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1325b4a37d94bfa5ec395e75cf53484db4decf111800a1ebbbca8c8e550eb3f7
MD5 7a6f1e4eead9f9a374c167a42afd345d
BLAKE2b-256 299190a11988e17ccd45a85fcfd8a8e675b1904f5520531124882203e6e2488f

See more details on using hashes here.

File details

Details for the file eml2mbox-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: eml2mbox-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.14.5 Linux/7.0.12-201.fc44.x86_64

File hashes

Hashes for eml2mbox-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b654fbe24af59491e42d73108f781104baded8ae35e8838d6c896d6cfbb5ef8
MD5 58bd99debae3df635bbc30df40ecd89e
BLAKE2b-256 3cc022b95792bb0ef63efba2d7ca7f549403f4a8dedc4cf03053afcdd012a438

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page