NAME
Mail::Milter::Authentication::Config - Load config files for Authentication Milter
VERSION
version 2.20200602.2
SYNOPSIS
Load in the configuration data, does some processing on handlers loaded before returning config to the caller.
If the $Mail::Milter::Authentication::Config::PREFIX variable is set then the config file will be read from the supplied directory rather than /etc/
DESCRIPTION
Load in configuration data.
FUNCTIONS
default_config()
Return a default configuration including defaults from handler modules.
This is not the default config used by the system if no config is present, rather it is the config which is presented to the user as an example default config when using the help feature.
set_config( $config )
Set the config hashref, primarily used for testing.
load_file( $file )
Internal function used to load the config from /etc/authentication_milter.json
process_config()
Process the loaded config with the callback if required.
This is the name of a Module to load, the process_config method of the instantiated object will be called with $config as the argument.g
package ConfigProcessor;
sub new {
...
}
sub process_config {
my ( $self, $config ) = @_;
}
1;
get_config()
Return the config hashref, load from file(s) if required.
AUTHOR
Marc Bradshaw <marc@marcbradshaw.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020 by Marc Bradshaw.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.