get-message
Retrieve the full body of an email in Apple Mail by its ID, choosing plain text or HTML.
Instructions
Use when: reading the full body of one message whose id you already have (numeric or imap:…); set preferHtml to get the HTML body instead of plain text. Returns: the message subject and body (plain text by default, HTML when preferHtml is true). Do not use when: you don't yet have an id (use search-messages or list-messages first), or you want the whole conversation (use get-thread).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| preferHtml | No | Return the HTML body (extracted from the message source) instead of plain text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| body | No | ||
| isHtml | No | ||
| subject | No |