restore_email
Restore a trashed email to your inbox or another folder, reversing a previous trash operation. Works only on messages currently in Trash.
Instructions
Move an email from Trash back to INBOX or to a specified folder. Use to undo a trash_email operation. Does not work on permanently deleted messages — only messages currently in Trash can be restored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailId | Yes | Composite email id in FOLDER::UID format, as returned by get_emails or search_emails. | |
| targetFolder | No | Optional restore destination. Defaults to INBOX. |