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: preference=score |
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-0=ACT_NOW_CAPS 5.0 value-1=INVALID_DATE 3.2 value=ACT_NOW_CAPS 5.0 |
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
}
}