Find email folder
find_email_folderLocate the real mailbox folder containing an email when it appears in a virtual folder such as All Mail or Starred, returning the source folder path needed for moving or deleting it.
Instructions
Find a real mailbox folder an email belongs to. Required before move_email or delete_email when the email was found in a virtual folder (e.g., "All Mail", "Starred"). Returns the first real folder path found, to use as sourceMailbox; on a label-based server a message may also sit in other folders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account name from list_accounts | |
| emailId | Yes | Email ID (UID) from list_emails | |
| sourceMailbox | No | Mailbox where the email is currently visible (e.g., "All Mail") | INBOX |