Mail::SpamAssassin::Conf::ParserSection: User Contributed Perl Documentation (3)Updated: 2004-08-27 |
Mail::SpamAssassin::Conf::ParserSection: User Contributed Perl Documentation (3)Updated: 2004-08-27 |
(see Mail::SpamAssassin)
This class is used internally by SpamAssassin to parse its configuration files. Please refer to the "Mail::SpamAssassin" documentation for public interfaces.
- $CONF_TYPE_STRING: string
- $CONF_TYPE_NUMERIC: numeric value (float or int)
- $CONF_TYPE_BOOL: boolean (0 or 1)
- $CONF_TYPE_TEMPLATE: template, like "report"
- $CONF_TYPE_ADDRLIST: address list, like "whitelist_from"
- $CONF_TYPE_HASH_KEY_VALUE: hash key/value pair,
like "describe" or tflags
If this is set, a 'code' block is assigned based on the type.
Note that $CONF_TYPE_HASH_KEY_VALUE-type settings require that the value be non-empty, otherwise they'll produce a warning message.
There are two special return values that the code subroutine may return to signal that there is an error in the configuration:
$Mail::SpamAssassin::Conf::MISSING_REQUIRED_VALUE --- this setting requires that a value be set, but one was not provided.
$Mail::SpamAssassin::Conf::INVALID_VALUE --- this setting requires a value from a set of 'valid' values, but the user provided an invalid one.
Any other values --- including "undef" --- returned from the subroutine are considered to mean 'success'.
Note that the registered commands array can be extended by plugins, by adding the new config settings to the "$conf-<gt"{registered_commands}> array ref.