Update account BoxTrapper ignorelist

This function sets the BoxTrapper ignorelist configuration rules. BoxTrapper will delete messages that match these rules without sending a notification to the sender.

Important:

When you disable the Receive Mail role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
email
required
string <email>

A valid email address on the cPanel account.

Warning:

If you call this function in Webmail, the system overrides this parameter. This parameter defaults to the current email address.

Example: email=user@example.com
rules
required
Array of strings

An array of ignorelist rules.

Note:

You can set multiple ignore rules, duplicate or increment the parameter name. For example, rules-1, rules-2, and rules-3.

Examples:
rules=rules-1='ignored-email\@domain\.com' rules-2='from ignored-email2\@domain\.com' rules-3='to domain2\.com'
rules=rules='ignored-email\@domain\.com' rules='from ignored-email2\@domain\.com' rules='to domain2\.com'
rules=ignored-email\@domain\.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/BoxTrapper/set_ignorelist
Request samples
uapi --output=jsonpretty --user=username BoxTrapper set_ignorelist email='user@example.com' rules-1='ignored-email\@domain\.com' rules-2='from ignored-email2\@domain\.com' rules-3='to domain2\.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "set_ignorelist",
  • "module": "BoxTrapper",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}