list_emails
Retrieve emails from a mailbox using filters for sender, subject, date, read status, attachments, and more. Returns paginated results with metadata like flags and labels.
Instructions
List emails in a mailbox with optional filters. Returns paginated results with metadata (read/unread đĩ, flagged â, replied âŠī¸, attachments đ, labels đˇī¸). 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 |
| 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 |