This function sets the Apache SpamAssassin™ settings for the account.
Note:
Additional customizations may appear in the function's return. For more information, read the Apache SpamAssassin configuration file documentation.
preference required | string The variable that you want to manipulate.
Important:
Example: |
value | string The value for the preference of the variable that you want to manipulate.
Note: To enter multiple values, increment the parameter name. For example, use the value value |
HTTP Request was successful.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --output=jsonpretty \ --user=username \ SpamAssassin \ update_user_preference \ preference='score'
{- "apiversion": 3,
- "func": "update_user_preference",
- "module": "SpamAssassin",
- "result": {
- "data": {
- "blacklist_from": [
- "username2@example.com"
], - "ok_locales": [
- "all"
], - "required_score": [
- 5
], - "score": [
- "ACT_NOW_CAPS 5"
], - "whitelist_from": [
- "username@example.com"
]
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}