rename-mailbox
Rename an existing mailbox folder in Apple Mail from its current name to a new name within the same account.
Instructions
Use when: renaming an existing mailbox/folder from oldName to newName within an account. Returns: a confirmation naming the old and new mailbox names. Do not use when: creating a new folder (use create-mailbox) or deleting one (use delete-mailbox). Use list-mailboxes to confirm the current name. Safety: renames a real folder in the mail account — confirm oldName matches exactly (case-sensitive) before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account containing the mailbox | |
| newName | Yes | ||
| oldName | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| newName | No | ||
| oldName | No |