Skip to main content
gmail.markMessagesAsNotSpam removes SPAM and adds INBOX in one request.

Example

Restore up to 100 messages from a trusted sender:

Inputs

Inputs accept compatible signals.

Output

Returns a Signal<string[]> with the modified message IDs in input order. This action requests both state changes together: remove SPAM and add INBOX. Other system and user labels remain untouched. It operates on individual messages, even when Gmail displays them as a conversation.