Description
Returns up to 200 visible mailboxes/folders for the specified account. Includes hierarchy delimiter information when supported by the server.Mailbox names are server-dependent and may include special characters or Unicode. Common mailboxes include
INBOX, Sent, Drafts, Archive, and Trash.Input Parameters
Account identifier matching an environment variable configuration.Pattern:
^[A-Za-z0-9_-]{1,64}$Response
Human-readable summary of the operation outcome.Example:
"5 mailbox(es)"Execution metadata.
Examples
Error Cases
Invalid Account ID
Account Not Found
Mailbox Limits
The response is limited to 200 mailboxes. If your account has more mailboxes, only the first 200 will be returned. This limit is enforced to keep response sizes manageable.Special Mailbox Names
Mailbox names are case-sensitive and server-dependent. Common variations include:
INBOX(always uppercase per RFC 3501)SentvsSent ItemsvsSent MailTrashvsDeleted ItemsvsDeleted MessagesDraftsvsDraftArchivevsAll Mail
Related Tools
- imap_list_accounts - List all configured accounts
- imap_verify_account - Verify account connectivity before listing mailboxes
- imap_search_messages - Search messages in a specific mailbox