Description
This function lists account-level mail filters. For more information about Exim filters, read Exim's documentation.
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 |
account |
string |
The email address or cPanel account username for which to return a list of filters. If you do not specify this value, the function lists all of the cPanel account's account-level filters. |
|
user@example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
actions |
array of hashes |
An array that contains hashes of the filter's actions. |
This array's hashes include the dest and actionreturns. |
|
dest |
string |
The destination to which the filter sends mail. The function returns this value in theactions hash. |
|
/dev/null |
action |
string |
The filter's action. The function returns this value in theactions hash. |
|
|
filtername |
string |
The filter's name. |
The filtername input parameter's value. |
coffee |
unescaped |
Boolean |
Note: We deprecated this parameter in cPanel & WHM version 11. |
|
|
rules |
array of hashes |
An array that contains hashes of the filter's rules. |
This array's hashes include the match, part, opt, and val returns. |
|
part |
string |
The queried email section. The function returns this value in therules hash. |
|
$message_body |
match |
string |
The filter's match type. The function returns this value in therules hash. |
|
contains |
val |
string |
The matched value. The function returns this value in therules hash. |
A string value. |
coconut |
opt |
string |
The connection between multiple conditions. The function returns this value in therules hash. |
|
or |