search_messages
Find emails in NetEase mailboxes by sender, recipient, subject, date, folder, or read/flagged status, returning message IDs and header details newest-first.
Instructions
Search or list messages newest-first. Returns ids plus date/from/to/subject/flags. Date and unread/flagged filters run on the server; query/from/to/subject match headers locally over at most max_scan candidates (truncated=true means more may exist). Message bodies are never searched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Substring of a To/Cc name/address. | |
| from | No | Substring of the sender's display name or address. Display names are set by the sender and can imitate an address; check the address itself. | |
| limit | No | Max results (≤100). | |
| query | No | Words that must all appear in From/To/Cc/Subject (case-insensitive substring). Bodies are not searchable. | |
| since | No | YYYY-MM-DD, inclusive. | |
| before | No | YYYY-MM-DD, exclusive. | |
| folder | No | Folder name/role ("INBOX", "已发送", "sent"), a list, or "all" (every folder except Junk/Trash/病毒文件夹). | INBOX |
| unread | No | true = unread only, false = read only | |
| account | No | Email address; omit for the default (first) account. | |
| flagged | No | true = flagged (starred) only | |
| subject | No | Substring of the subject. | |
| max_scan | No | Max candidates to check client-side (≤5000). | |
| has_attachment | No |