search_mail
Search all accounts and mailboxes at once by querying subject, sender, recipients, or full message body. Filter by date, sender, mailbox, unread status, or attachments to find and retrieve specific message IDs.
Instructions
Search mail across every account at once, including message bodies.
query matches subject, sender, recipients and full body text. Wrap words in double quotes for an exact phrase. Leave query empty to browse by filter alone. days=7 limits to the last week. Returns numeric message ids for use with get_message, get_thread, prepare_reply and prepare_forward.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| limit | No | ||
| query | No | ||
| offset | No | ||
| sender | No | ||
| account | No | ||
| mailbox | No | ||
| unread_only | No | ||
| flagged_only | No | ||
| with_attachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |