List emails
list_emailsList the emails in one folder, newest first by default, 20 at a time. Each entry has the email's UID, date, sender, subject and read state. order=oldest_first starts from the other end, and offset pages further. A UID identifies an email only within the folder it was listed from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | The email account address | ||
| limit | No | How many emails to return. Defaults to 20, capped at 100. | |
| order | No | Date order: newest_first (the default) or oldest_first. | newest_first |
| offset | No | How many emails to skip from the start of the ordering. Defaults to 0. | |
| mailbox | Yes | Mailbox/folder to list, e.g. "INBOX". list_mailbox_folders lists the folders this account has. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | Date order of `emails`. | |
| query | No | The search text, for search_emails. Absent for list_emails. | |
| total | Yes | How many emails the folder holds (or match the query) in all, not just this page. | |
| emails | Yes | This page of emails. | |
| offset | Yes | Position of this page's first email in the ordering, counting from 0. | |
| mailbox | Yes | The folder listed or searched. UIDs below only mean something together with it. | |
| next_offset | No | Pass this as `offset` to get the next page. Absent on the last page. |