Description
This function retrieves an email filter's information.
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 |
Required The email address that owns the filter. |
A valid email address on the cPanel account. |
user@example.com |
|
filtername |
string |
Required The filter's name. |
The name of an email filter. |
coffee |
Returns
|
Return |
Type |
Description |
Possible values |
Example |
|
actions |
array |
An array that contains a hash of the filter's actions. |
This array's hash contains the number, dest, and actionreturns. |
|
|
number |
integer |
The filter's position in the order of the account's filters. The function returns this value in the actions hash. |
A positive value. |
1 |
|
dest |
string |
The destination to which the filter sends mail. The function returns this value in the actions hash. |
|
/dev/null |
|
action |
string |
The filter's action. The function returns this value in the actions hash. |
|
|
|
filtername |
string |
The filter's name. |
The filtername input parameter's value. |
coffee |
|
rules |
array |
An array that contains a hash of the filter's rules. |
This array's hash contains the number, match, part, opt, and val returns. |
|
|
number |
integer |
The filter's position in the order of the account's filters. The function returns this value in the rules hash. |
A positive value. |
1 |
|
match |
string |
The filter's match type. The function returns this value in the rules hash. |
|
contains |
|
part |
string |
The queried email section. The function returns this value in the rules hash. |
|
$message_body |
|
opt |
string |
The connection between multiple conditions. The function returns this value in the rules hash. |
|
or |
|
val |
string |
The matched value. The function returns this value in the rules hash. |
A string value. |
coconut |
