Read a message
mail_get_emailRetrieve a full email by ID, including headers, text body, and attachments, without marking it read. Use it to inspect messages found via search before replying or downloading files.
Instructions
Returns a whole message by id (from mail_search_emails): headers, body text (HTML is converted to text) and the list of attachments. mail_get_attachment reads an attachment's content (PDF, image, text). To reply use mail_send_email with in_reply_to_id. Changes nothing (does not mark the message as read).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Message id. | |
| html | No | true = return the original HTML instead of converted text. | |
| account | No | Which account: leave empty for the signed-in mailbox, or name a shared mailbox / group you have access to (the part before @ is enough; a full address works too). mail_list_mailboxes shows what exists. |