imap_create_folder
Create new IMAP folders, automatically creating any missing parent directories. Useful for organizing emails.
Instructions
Create a new IMAP folder/mailbox. Most servers also create any missing parent folders (e.g. creating "Archives/2026/2026-05" auto-creates "Archives" and "Archives/2026"). Returns success even if the folder already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | Full folder path to create (e.g. "Archives/2026/2026-05" or "INBOX.Archive") | |
| accountId | No | Account ID (from imap_list_accounts). Optional if accountName is given or only one account is configured. | |
| accountName | No | Account name instead of accountId. Optional if accountId is given or only one account is configured. |