5 functions, invoked through the cpanel_uapi tool.
scope cpanel:uapi
Call any function with cpanel_uapi(service_id, module="Mailboxes", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.
This function marks the selected mail messages as deleted.
accountmixedRequired
The email account's name.
mailboxstringRequired
The mailbox to operate on. Note: Use the Mailboxes::get_mailbox_status_list function to list possible values for the mailbox parameter. Because you cannot escape wildcard characters such as (*), we recommend that you use functions that use the mailbox_guid parameter instead. For example, the Mailboxes::expunge_messages_for_mailbox_guid function.
querystringRequired
The Dovecot query to execute. Note: The query parameter prevents accidental removal of all messages in the mailbox. For more information, read Dovecot's Search Query documentation.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
This function marks the selected mailbox's messages as deleted.
accountmixedRequired
The email account's name.
mailbox_guidstringRequired
The mailbox's globally unique identifier (GUID). Use the Mailboxes::get_mailbox_status_list function to list possible values for the mailbox_guid parameter.
querystringRequired
The query to select which messages you wish to remove from the mailbox.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
This function determines whether a cPanel user currently uses UTF-8 character-encoded mailbox names.
userstringOptional
The user for whom to determine whether they currently use UTF-8 character-encoded mailbox names. Note: This parameter defaults to the currently-logged in user.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
enabledinteger
Whether the user currently uses UTF-8 character-encoded mailbox names. 1 - Uses UTF-8 character-encoded mailbox names. 0 - Does not use UTF-8 character-encoded mailbox names.