maton google-mail message modify

Add or remove labels on a message

maton google-mail message modify <message-id> [flags]

Options

--add-label <strings>
Label ID to add (repeatable; one of --add-label/--remove-label required)
--connection <string>
Connection ID to route through (Maton-Connection header)
--dry-run
Print the request that would be sent without executing it
--format <string>
Output format: 'json' (default) or 'text' on supported commands
-q, --jq <expression>
Filter JSON output using a jq expression
--paginate
Follow next_cursor and concatenate all pages (list commands only)
--remove-label <strings>
Label ID to remove (repeatable; one of --add-label/--remove-label required)
--template <string>
Format JSON output using a Go template; see "maton help formatting"

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

$ maton google-mail message modify 18f1a2b3 --add-label STARRED
$ maton google-mail message modify 18f1a2b3 --remove-label UNREAD

See also