Mailmun...nstants(3)
π 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/sendmailPath:QUARANTINEDIRβ/var/spool/mm-quarantinePath:SPOOLDIRβ/var/spool/mailmungePath: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
- alpine 3.24: mailmunge-doc 3.20-r0 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms