Mailmun...nstants(3)

πŸ“¦ version 3.20, in alpine 3.24

πŸ’– NAME πŸ’–

Mailmunge::Constants β€” holds constants defined at build time. This page is Mailmunge::Constants(3) from the User Contributed Perl Documentation crew, and it's basically the build-time constants bestie.


✨ SYNOPSIS ✨

Okay so here's the vibe β€” you grab stuff like this:

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 if it 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. Periodt.


That's the whole page, bestie πŸ’… Sign-off time: source is User Contributed Perl Documentation, version is perl v5.42.2, date is 2025-10-05, and the page is Mailmunge::Constants(3). 🫢✨

πŸ“¦ where this page comes from