Manpage logo

Mailmunge::Constants - Holds constants defined at build time

NAME  SYNOPSIS  CLASS METHODS  get($const_name)  get_program_path($program)  AUTHOR  LICENSE 

NAME

Mailmunge::Constants − Holds constants defined at build time

SYNOPSIS

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');

CLASS METHODS

get($const_name)

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

get_program_path($program)

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.

AUTHOR

Dianne Skoll <[email protected]>

LICENSE

This code is licensed under the terms of the GNU General Public License, version 2.


Updated 2026-06-01 - jenkler.se | uex.se