Description
This function adds an account-wide email filter.
Warning:
- UAPI (recommended) —
Email::store_filter
— This function creates a new email filter. - cPanel API 2 —
Email::storefilter
— This function creates an email filter.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
match value |
string or integer |
Required The string for which to search. |
Any valid string. |
This email is filtered. |
method |
string |
Required The matching type.
|
Numeric operators:
String operators:
|
contains |
msgpart |
string |
Required The email message section to search. |
Note: Generally, the recipient does not receive the BCC field in an email's header. For this reason, you cannot use theBCC field in a filter.
|
message_body |
dest |
string |
Required The destination to which the system sends email messages that match this filter's criteria. |
|
filtered@example.com |
Returns
This function does not return output.