export_emails
Export emails from Apple Mail accounts to files for backup or analysis. Specify account, mailbox, and scope to export a single email by subject or an entire mailbox with configurable format and save location.
Instructions
Export emails to files for backup or analysis.
Args: account: Account name (e.g., "Gmail", "Work") scope: Export scope: "single_email" (requires subject_keyword) or "entire_mailbox" subject_keyword: Keyword to find email (required for single_email) mailbox: Mailbox to export from (default: "INBOX") save_directory: Directory to save exports (default: "~/Desktop") format: Export format: "txt", "html" (default: "txt") max_emails: Maximum number of emails to export for entire_mailbox (default: 1000, safety cap)
Returns: Confirmation message with export location
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| format | No | txt | |
| account | Yes | ||
| mailbox | No | INBOX | |
| max_emails | No | ||
| save_directory | No | ~/Desktop | |
| subject_keyword | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |