export_emails
Export emails from Apple Mail accounts to local files for backup or analysis. Choose between exporting a single email by subject or an entire mailbox with format and quantity limits.
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 |
|---|---|---|---|
| account | Yes | ||
| scope | Yes | ||
| subject_keyword | No | ||
| mailbox | No | INBOX | |
| save_directory | No | ~/Desktop | |
| format | No | txt | |
| max_emails | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |