Skip to main content

Pure Python EML and MSG converter

Project description

email2md

Convert email files (.eml, .msg) to Markdown (default) or HTML.

Install

pip install email2md

CLI usage

Prefix with uvx to run as a portable tool "without installing".

# markdown (default)
email2md message.msg

# HTML
email2md message.eml --html

# read from stdin
cat message.msg | email2md > message.md

# save attachments, reference image instead of inlining as b64
email2md message.msg --save-attachments --reference-images -o ./output > message.md

For all flags:

email2md --help

Python usage

from email2md import ConvertOptions, to_markdown

md = to_markdown(
    "message.eml",
    ConvertOptions(include_headers=True, save_attachments=False, inline_images=True),
)

Project details


Download files

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

Source Distribution

email2md-0.1.3.tar.gz (62.1 kB view details)

Uploaded Source

Built Distribution

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

email2md-0.1.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file email2md-0.1.3.tar.gz.

File metadata

  • Download URL: email2md-0.1.3.tar.gz
  • Upload date:
  • Size: 62.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for email2md-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3649ec6e0c9974c82cd85c48c566a7ed5c09f6ce5b5cffdf0968fd0c217361d1
MD5 dd7c99e16ad4b9bfe6e674cf53f32f67
BLAKE2b-256 1267558142552942d23598bb662066a7536d40302c9b86277dee6f239480f623

See more details on using hashes here.

Provenance

The following attestation bundles were made for email2md-0.1.3.tar.gz:

Publisher: publish.yml on hewliyang/email2md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file email2md-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: email2md-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for email2md-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d9cc4000fc93528f05190b728a13bedd052717181544a7fbe99a6a0624b4d1d8
MD5 06bc8c0752ee17451e5edac884bc0018
BLAKE2b-256 a5e88052b238656f1196b56928929207716df79f45af7d81c406d5183e300674

See more details on using hashes here.

Provenance

The following attestation bundles were made for email2md-0.1.3-py3-none-any.whl:

Publisher: publish.yml on hewliyang/email2md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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