mail_get_attachment
Downloads an email attachment to a specified folder using its index from a previous list. Refuses oversized files; verify size first.
Instructions
Save one attachment (by its index from mail_list_attachments) to a local directory. Refuses attachments that would need more than a reasonable size — check size via mail_list_attachments first for anything large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| messageId | No | Mail's internal numeric message id (fast, exact). | |
| accountName | Yes | ||
| mailboxPath | Yes | ||
| destDirectory | Yes | ||
| rfc822MessageId | No | RFC822 Message-ID header value, if messageId isn't known. |