Description
This function modifies email filter order.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Email::reorder_filters
— This function modifies the filter order for an email address.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
mailbox |
string |
Required The email address. |
A valid email address on the account. |
user@example.com |
filter* |
string |
Required A mail filter. Note: For each mail filter to reorder, supply a filter*parameter, where * represents a number that represents the filter's order. For example, to set coffee as the first email filter and cheesecloth as the second, set coffee as thefilter1 parameter's value, and cheesecloth as the filter2 parameter's value. |
The name of one of the email address's filters. |
coffee |
Returns
Return |
Type |
Description |
Possible values |
Example |
ok |
Boolean |
Whether the function succeeded. |
|
1 |
result |
Boolean |
Whether the function succeeded. |
|
1 |