List emails
list_emailsBrowse emails in a mailbox with optional sender, subject, date, read, flag, reply, and attachment filters; get paginated results with metadata.
Instructions
List emails in a mailbox with optional filters. Returns paginated results with metadata (read/unread đĩ, flagged â, replied âŠī¸, attachments đ, labels đˇī¸). List or machine-generated mail is marked đ° newsletter / đ¤ automated from its RFC headers, with the unsubscribe URI when the sender offers one â personal mail carries no marker. Use get_email to fetch full body content. ProtonMail note: labels are represented as IMAP folders â use list_labels to discover them, then list_emails with mailbox="Labels/X" to find labeled emails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Filter by sender address or name | |
| page | No | Page number | |
| seen | No | Filter: true=read only, false=unread only | |
| since | No | Show emails after this date (ISO 8601) | |
| before | No | Show emails before this date (ISO 8601) | |
| account | Yes | Account name from list_accounts | |
| flagged | No | Filter: true=flagged only, false=unflagged only | |
| mailbox | No | Mailbox path (default: INBOX) | INBOX |
| preview | No | Include a ~200 character body preview per message. Off by default: it fetches extra bytes per message and lengthens the output. | |
| subject | No | Filter by subject keyword | |
| answered | No | Filter: true=replied, false=not yet replied | |
| pageSize | No | Results per page | |
| has_attachment | No | Filter: true=has attachments, false=no attachments |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| cache | No | ||
| count | Yes | ||
| total | Yes | ||
| emails | Yes | ||
| account | Yes | ||
| hasMore | Yes | ||
| mailbox | Yes | ||
| pageSize | Yes |