This function enables spam box filtering for a cPanel account. When you enable spam box filtering, the system sends messages marked as spam to a spam folder.
Notes:
Email::disable_spam_box
function.Important:
When you disable the Spam Filter role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ enable_spam_box
{- "apiversion": 3,
- "func": "enable_spam_box",
- "module": "Email",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}