Skip to content

Add EML email conversion support#1877

Open
Lubrsy706 wants to merge 1 commit into
microsoft:mainfrom
Lubrsy706:feat/eml-converter
Open

Add EML email conversion support#1877
Lubrsy706 wants to merge 1 commit into
microsoft:mainfrom
Lubrsy706:feat/eml-converter

Conversation

@Lubrsy706
Copy link
Copy Markdown

Summary

  • add a built-in RFC 822 / .eml converter using Python's standard email parser
  • emit email metadata, preferred plain-text content, HTML fallback conversion, and attachment names
  • add an EML fixture to the existing vector conversion tests

Fixes #89.

Verification

  • .venv/bin/python -m pytest packages/markitdown/tests/test_module_vectors.py::test_guess_stream_info packages/markitdown/tests/test_module_vectors.py::test_convert_local packages/markitdown/tests/test_module_vectors.py::test_convert_stream_with_hints packages/markitdown/tests/test_module_vectors.py::test_convert_stream_without_hints -q
  • .venv/bin/python -m compileall -q packages/markitdown/src/markitdown/converters/_eml_converter.py

@Lubrsy706
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EML support

1 participant