Save an attachment
mail_save_attachmentSave an email attachment to a local directory using its part name from mail_attachments, with optional custom filename and overwrite control.
Instructions
Write one attachment to a directory on this machine.
part_name comes from mail_attachments. Refuses to clobber an existing
file unless overwrite=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | ||
| directory | Yes | ||
| overwrite | No | ||
| part_name | Yes | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||