extract_eml_attachments
Extract attachments from .eml email files and organize them into folders by type: small files, documents, images, and other attachments. Supports custom output directory and zip creation.
Instructions
Extract attachments from .eml file with smart organization.
Organizes files into folders:
small_files/: Files <10KB (icons, signatures, etc.)
documents/: PDFs, Word docs, spreadsheets, presentations
images/: All image files (inline + regular)
attachments/: Everything else
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to the .eml file | |
| organize | No | Whether to organize into subfolders (default: True) | |
| create_zip | No | Create a zip file of all extracted content (default: False) | |
| output_dir | No | Directory to extract to (default: "eml_extracted") | eml_extracted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||