config file options
Julian Field
mailscanner at ecs.soton.ac.uk
Wed May 21 17:40:03 IST 2003
At 16:00 21/05/2003, you wrote:
>Hi Julian,
>
>is there a "clean" way to add configuration variables? That is, I want to add
>a couple of functions in CustomConfig.pm but would rather have configuration
>options in MailScanner.conf... that is... avoiding things like:
> my $WhitelistDir = '/etc/MailScanner/spam.bydomain/whitelist';
> my $BlacklistDir = '/etc/MailScanner/spam.bydomain/blacklist';
>in CustomConfig.pm
>
>Is this possible or the only way is modifying Config.pm _and_ ConfigDefs.pl?
You don't have to touch Config.pm, just define the variable in
ConfigDefs.pl. You can then get its value with
MailScanner::Config::Value('yourvariable')
--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support
More information about the MailScanner
mailing list