$_capabilities
$_capabilities : array
Capabilities supported by the driver.
Sam storage implementation for LDAP backend.
Requires SpamAssassin patch found at: http://bugzilla.spamassassin.org/show_bug.cgi?id=2205
Copyright 2003-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
__construct(string $user, array $params = array())
Constructor.
string | $user | A user name. |
array | $params | Class parameters:
|
setOption(string $option, string $value, boolean $defaults = false)
Sets a preference value for the user or as global defaults, depending on the parameters.
Does not automatically store options to the backend.
string | $option | The option to set. |
string | $value | The new value. |
boolean | $defaults | Whether to set the global defaults instead of user options. |
setListOption(string $option, string $value, boolean $defaults = false)
Sets an internal address array.
Useful for whitelists and blacklists. The passed data is split at whitespace. Does not automatically store options to the backend.
string | $option | The option to set. |
string | $value | A string of data that will be converted to an array and stored for later storage to the backend. |
boolean | $defaults | Whether to set the global defaults instead of user options. |
setStackedOption(string $option, string $value, boolean $defaults = false)
Sets an internal array of options which have multiple elements of data stored in their value.
E.g. rewrite_header takes two elements, a header and a string, as in 'rewrite_header' => 'Subject SPAM'.
There can be multiple entries for these options, so they cannot be treated independently.
Does not automatically store options to the backend.
string | $option | The base option to set. Should only be 'rewrite_header' ATM. |
string | $value | A string of data that will be converted to an array and stored for later storage to the backend. |
boolean | $defaults | Whether to set the global defaults instead of user options. |