convert_eml_to_bundle
Convert .eml files into self-contained bundles with markdown and extracted attachments, stripping signatures and tracking pixels for clean ingestion into LLM pipelines.
Instructions
Convert a .eml file to a self-contained bundle with markdown and attachments.
Creates a directory containing the converted markdown, extracted attachments, and optionally the original .eml source.
source_handling controls the original .eml:
copy (default): copy into bundle, leave original untouched
move: move original into bundle
delete: remove original after successful conversion
Returns JSON with bundle_path, markdown_path, attachment_paths, and optional diagnostics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | default | |
| eml_path | Yes | ||
| bundle_root | Yes | ||
| thread_mode | No | latest | |
| thread_order | No | oldest-first | |
| source_handling | No | copy | |
| include_raw_html | No | ||
| strip_signatures | No | ||
| strip_disclaimers | No | ||
| embed_inline_images | No | ||
| include_all_headers | No | ||
| no_calendar_summary | No | ||
| strip_quoted_headers | No | ||
| strip_tracking_pixels | No | ||
| strip_signature_images | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |