MHArc::Config - Load mail archive configuration file |
MHArc::Config - Load mail archive configuration file
$conf = MHArc::Config->load($filename); print $conf->{'HTML_DIR'};
This module will load in the archive configuration file. The archive configuration file defines variables in Bourne shell syntax format.
NOTE: Only a subset of the Bourne shell syntax is supported, so do not get fancy with the file.
The load
static method will create a new configuration instance
that is a bless hash reference. The variables defined in the file
will be the hash keys.
NOTE: If the filename specified does not exist, then the load()
method will check for the filename with a .dist
extension. It
is recommended to not rely on the .dist
version since it will
get overwritten on software updates.
$Id: Config.pm,v 1.7 2002/09/13 07:24:18 ehood Exp $
Earl Hood, earl@earlhood.com
This module is part of the mharc archiving system and comes with ABSOLUTELY NO WARRANTY and may be copied only under the terms of the GNU General Public License, which may be found in the MHArc distribution.
MHArc::Config - Load mail archive configuration file |