Search mail
search_messagesSearch Exchange mailbox messages by text, sender, recipient, subject, date range, folder, attachments or unread status, returning the newest matches first.
Instructions
Finds messages, newest first. Combine any filters. With text, sender, recipient or subject, Exchange's full-text index is used and only the newest 500 matches are checked against the dates and flags: narrow the words if complete is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Words to find in the subject, body or attachments' names (Exchange full-text search; AQS like `budget AND q4` works). | |
| limit | No | Default 20. | |
| since | No | YYYY-MM-DD, ISO 8601 date-time, today, yesterday, or relative like 7d / 12h / 2w. | |
| until | No | YYYY-MM-DD, ISO 8601 date-time, today, yesterday, or relative like 7d / 12h / 2w. | |
| folder | No | Where to look. `all` covers every mail folder except Deleted Items, Junk, Drafts and Outbox. | inbox_and_sent |
| sender | No | Name or email of the sender. | |
| subject | No | Words in the subject. | |
| recipient | No | Name or email of a recipient (To or Cc). | |
| unread_only | No | ||
| has_attachments | No | true: only with attachments; false: only without. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||