messages_list
List and search messages for an alias using IMAP. Filter by sender, subject, date, folder, unread, or flagged status to find specific emails.
Instructions
List and search messages for an alias (IMAP). Requires alias credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | To-header search | |
| from | No | From-header search | |
| page | No | Page number (1-indexed) | |
| limit | No | Results per page (default 25, max 100) | |
| since | No | ISO date-time lower bound | |
| before | No | ISO date-time upper bound | |
| folder | No | Filter by folder path | |
| search | No | Full-text search query | |
| filters | No | Additional raw query filters not covered above (e.g. is_junk, min_size, max_size, headers, message_id, 'reply-to') | |
| subject | No | Subject search | |
| is_unread | No | Only unread messages | |
| is_flagged | No | Only flagged messages | |
| lightweight | No | Return metadata-only results. Much faster for list views, but the response omits 'nodemailer' and 'raw' and instead carries from/to/cc/bcc/reply_to parsed from the headers | |
| alias_password | Yes | Alias password from the alias_generate_password tool | |
| alias_username | Yes | Full alias email used as the auth username (e.g. me@example.com) | |
| has_attachments | No | Only messages with attachments |