Skip to main content
gmail.markMessagesAsUnread adds Gmail’s UNREAD label to messages.

Example

Mark up to 100 read messages with the Needs review label as unread:

Inputs

Inputs accept compatible signals.

Output

Returns a Signal<string[]> with the modified message IDs in input order. Gmail stores unread state per message. Adding UNREAD to one message can make its conversation appear unread in Gmail even though other messages in the thread remain read.