save_attachment
Download one email attachment from a specified account, folder, and message UID, then save it to a local path without modifying the mailbox.
Instructions
Download one attachment from a message and write it to the local filesystem.
The mailbox is not modified. Returns the written path, size, MIME type and original filename. An existing file at the target path is overwritten.
Args:
account: Account name from list_accounts.
folder: Folder containing the message.
uid: Message UID.
part: 1-based part index from read_email's attachments list.
save_to: Destination. A directory (trailing slash, existing
directory, or a path without an extension) keeps the original
filename; anything else is used as the full file path. ~ is
expanded and missing directories are created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| part | Yes | ||
| folder | Yes | ||
| account | Yes | ||
| save_to | Yes |