This function retrieves the Apache SpamAssassin™ settings for the account.
Important:
When you disable the SpamFilter role, the system disables this function.
account | string <email> Retrieve a specific user account's SpamAssassin settings. Note: If you do not specify this parameter, the function returns the settings for the default email account. Example: account=username@example.com |
uapi --output=jsonpretty \ --user=username \ Email \ get_spam_settings
{- "apiversion": 3,
- "func": "get_spam_settings",
- "module": "Email",
- "result": {
- "data": {
- "cpuser_spam_auto_delete": 1,
- "cpuser_spam_auto_delete_score": 8,
- "rewrites_subjects": 1,
- "spam_as_acl": 1,
- "spam_auto_delete": 0,
- "spam_auto_delete_score": 8,
- "spam_box_enabled": 0,
- "spam_enabled": 1,
- "spam_status_changeable": 1
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}