get_email
Retrieve a single email message by folder, UID, and UIDVALIDITY, obtaining envelope metadata, decoded text/HTML bodies, and attachment list as structured output.
Instructions
Read one message: envelope metadata, decoded plain-text and HTML bodies, and attachment list, all as structured output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | message uid from list_emails or search_emails | |
| folder | Yes | folder name, as returned by list_folders | |
| uidvalidity | Yes | uidvalidity value returned alongside the uid; detects stale uids |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | No | ||
| bcc | No | Bcc recipients; present when retained in the message envelope | |
| uid | Yes | ||
| date | No | send date, RFC 3339 | |
| from | No | ||
| seen | Yes | ||
| flagged | No | ||
| subject | Yes | ||
| answered | No | ||
| html_body | No | decoded html body | |
| message_id | No | RFC 5322 Message-ID without angle brackets; pass it as save_draft in_reply_to to reply in this thread | |
| plain_body | No | decoded plain text body | |
| references | No | conversation chain; a reply repeats it followed by message_id as save_draft references | |
| attachments | No | ||
| in_reply_to | No | Message-IDs this message replies to | |
| uidvalidity | Yes | ||
| html_truncated | No | html body was cut short | |
| text_truncated | No | plain text body was cut short | |
| charset_fallback | No | a body used an unknown charset; undecodable bytes were replaced |