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.2.tar.gz (65.5 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.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: email2md-0.1.2.tar.gz
  • Upload date:
  • Size: 65.5 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.2.tar.gz
Algorithm Hash digest
SHA256 ceeefece89d46148aaa8b2d0cc771348eeaeeb4630d2c0a7d1ca09f347765b49
MD5 e0b4127b65353d84e90bcf019b980605
BLAKE2b-256 92bf8b001c1b312b5a2bbde410b0c0076939e4918b3a45da3ca1465d155061cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for email2md-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: email2md-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 390c9e0a164af743322e6a1751bf52a5e63c0a48ea24f6e8b448ad6a1087b89a
MD5 ebb83b0a48b1f954ad578af0832a234b
BLAKE2b-256 dd2c9cdb3df9ef2e2c0d7cebaabd1395a392d1c10909c18087a5fe67950fde8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for email2md-0.1.2-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