yahoo_download_attachments
Download attachments from a Yahoo Mail message to an allowed local folder. Filter by filename, and choose the mailbox folder or account.
Instructions
Download attachments from a message to disk.
Args: msg_id: Message UID from yahoo_list_mail / yahoo_search_mail folder: Mailbox folder (default: INBOX) out_dir: Directory to save files (default: ~/Downloads). Must lie inside an allowed folder: ~/Downloads or a temp folder (the system temp dir, /tmp), unless YAHOO_MAIL_ALLOWED_DIRS replaces that list. Anything else is refused. filename_filter: Only download files matching this substring (case-insensitive) account: Account key from accounts.json, e.g. "personal" or "work". Default: the account that file marks as default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | INBOX | |
| msg_id | Yes | ||
| account | No | ||
| out_dir | No | ||
| filename_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |