Email Search
email_searchFind specific iCloud emails by combining filters for sender, subject, date, body, and read status.
Instructions
Server-side IMAP search. All provided filters are combined with AND; at least one is required.
Returns the same fields as email_list_messages, newest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Text matched against the message body (slower). | |
| limit | No | Maximum number of messages, newest first. | |
| query | No | Text matched against Subject OR From. | |
| since | No | Only messages on/after this date, YYYY-MM-DD. | |
| before | No | Only messages before this date, YYYY-MM-DD. | |
| folder | No | IMAP folder name. iCloud folders: INBOX, Drafts, 'Sent Messages', 'Deleted Messages', Junk, Archive (see email_list_folders). | INBOX |
| sender | No | Text/address matched against From (full addresses work best). | |
| subject | No | Text matched against Subject. | |
| recipient | No | Text/address matched against To or Cc. | |
| unread_only | No | Only unread messages. | |
| include_body | No | Include body_text (readable text, truncated). Set false for a fast header-only listing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |