imap_mark_as_read
Mark emails as read by UID. Pass a single UID or an array of UIDs to batch the operation in one IMAP round-trip, reducing overhead when triaging.
Instructions
Mark one or many emails as read. Accepts a single UID or an array — pass an array to flag N messages in one IMAP STORE round-trip (useful when triaging).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Email UID, or array of UIDs to mark as read in one call (avoids N round-trips when triaging). All listed UIDs share the same IMAP STORE command, so the operation is atomic at the server level. | |
| folder | No | Folder name | INBOX |
| accountId | No | Account ID (from imap_list_accounts). Optional if accountName is given or only one account is configured. | |
| accountName | No | Account name instead of accountId. Optional if accountId is given or only one account is configured. |