gmail_undo
Revert the last Gmail action, including recalling a send while Undo is available, by tapping Undo or applying the opposite action.
Instructions
Undo the last Gmail action: tap 'Undo' on its snackbar if still shown, else revert it.
After gmail.send / reply / forward / send_draft it recalls the mail while Gmail still shows 'Undo' (about 7 s after 'Sent'; the send result's undo_available says whether it still did): undone='send' only when the message is back in Drafts and not in Outbox / Sent. Later it fails (not_found, the mail was sent). To be sure to recall a send, use gmail.send undo=true.
Reverting runs the opposite action on the same conversations (found again by subject): archive/trash/spam -> back to the Inbox, star <-> unstar, read <-> unread, label add <-> remove, mute -> unmute, snooze -> unsnooze, move -> move back (when it was done from a folder list).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_age_s | No | Only revert a recorded action at most this many seconds old. |