Mailmunge::Constants − Holds constants defined at build time
my
$sendmail_prog =
Mailmunge::Constants−>get('Path:SENDMAIL'); # or..
my $sendmail_prog =
Mailmunge::Constants−>get_program_path('sendmail');
my $qdir =
Mailmunge::Constants−>get('Path:QUARANTINEDIR');
my $spooldir =
Mailmunge::Constants−>get('Path:SPOOLDIR');
my $confdir =
Mailmunge::Constants−>get('Path:CONFDIR');
Returns the
value of a build−time constant. The available names
and their default values on this installation are:
Path:SENDMAIL
/usr/sbin/sendmail
Path:QUARANTINEDIR
/var/spool/mm−quarantine
Path:SPOOLDIR
/var/spool/mailmunge
Path:CONFDIR
/etc/mailmunge
Returns the full path to the executable $program if it could be found by searching $PATH, or was configured correctly at build time. Returns undef if the program could not be found.
Dianne Skoll <[email protected]>
This code is licensed under the terms of the GNU General Public License, version 2.