Mark a message read or unread
mail_mark_readMark an email as read or unread by setting its read flag, updating unread counts for accuracy.
Instructions
Sets the read flag on one message. Defaults to marking it read; pass isRead:false to mark it unread again. Reading a message with mail_get_message does not change this flag, so unread counts stay accurate until you call this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the message to flag. | |
| isRead | No | True marks it read, false marks it unread. |