mail_download_attachment
Download any MIME part by exact partId from a message, including binary attachments, inline images, and attached emails. Returns a private file path, byte size, and SHA-256 hash.
Instructions
Stream any MIME part by exact partId from mail_get_message (not by filename), including binary attachments, inline images and attached emails. Duplicate filenames remain unambiguous. Saves privately and returns path, bytes and SHA-256. Transfer encodings are decoded; inline text may be normalized for display. Use mail_download_raw for original encoded bytes. Results exceeding 64 KiB are saved completely to a private JSON file and return a compact summary with completeResultFile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | Yes | ||
| partId | Yes | ||
| accountId | Yes | ||
| uidValidity | Yes |