emails
List messages in a mail folder with ID, date, sender, recipients, subject, and flags. Filter by sender, date, read state, attachments, or keywords without marking anything read.
Instructions
List the emails in one folder (default: the first mailbox's Inbox), one line each with ID, date, From, To, Subject and flags, plus the total and page count. No bodies: read an email with thread; to look across folders or by keywords use search. Changes nothing (nothing is marked as read). page_size is at most 200.
filter is Gmail-style and can combine: from:, to:, cc:, subject:, before:yyyy/MM/dd, after:yyyy/MM/dd, newer_than:7d (d/w/m/y), older_than:, is:unread, is:read, is:starred/is:pinned, is:answered, has:attachment, filename:, plain words (full-text), and -term to exclude.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Which page of results, starting at 1. | |
| order | No | descending (newest first) or ascending (oldest first). | descending |
| filter | No | Gmail-style filter, can combine: from:, to:, cc:, subject:, before:yyyy/MM/dd, after:yyyy/MM/dd, newer_than:7d (d/w/m/y), older_than:, is:unread, is:read, is:starred, is:answered, has:attachment, filename:<name>, plain words, and -term to exclude. | |
| folder | No | The folder, like 'INBOX' or 'Archive'. Another mailbox: 'you@example.com:INBOX', or just its address for its Inbox. Empty means the first mailbox's Inbox. | |
| page_size | No | How many emails per page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |