set_read_state
Marks an email as read or unread idempotently by identifying the message with account, mailbox, UID validity, and UID. Ensures consistent state updates without duplication.
Instructions
Set one read state idempotently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| read | Yes | ||
| mailbox | Yes | ||
| account_id | Yes | ||
| uid_validity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| changed | Yes | ||
| enabled | Yes | ||
| identity | Yes | ||
| new_flags | Yes | ||
| old_flags | Yes |