This function lists the status of a cPanel's mail account's mailboxes.
Important:
When you disable the Receive Mail role, the system disables this function.
required | string or string or string The email account's name. Example: account=user@example.com |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ get_mailbox_status_list \ account='user@example.com'
{- "data": {
- "mailboxes": [
- {
- "guid": "1234560f0c58d158c92a000044f0d230",
- "mailbox": "INBOX.marla_singer@example_com",
- "messages": 0,
- "vsize": 0
}
]
}, - "metadata": {
- "command": "get_mailbox_status_list",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}