← Documentation Index

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 <dianne@skollsoft.com>

LICENSE

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

Copyright © 2021 Skoll Software Consulting