From fd7a4ab29b4b02bc45b56110a3109769059f1bfc Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 12 Nov 2020 01:15:06 +0100 Subject: support MODERATORS --- mailman/mklist.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mailman/mklist.pl') diff --git a/mailman/mklist.pl b/mailman/mklist.pl index c787051..e1c2d06 100755 --- a/mailman/mklist.pl +++ b/mailman/mklist.pl @@ -4,7 +4,7 @@ use warnings; -our ($listname, $listdesc, $listhost, $senders, $senderfilter, $listowner); +our ($listname, $listdesc, $listhost, $senders, $senderfilter, $listowner, $moderators); # Load optional config my $config_file_addon_org = "/etc/local-ORG/mailman/mklist.conf"; @@ -23,6 +23,7 @@ $senderfilters = $ENV{'SENDERFILTER'} || $ENV{'SENDERFILTERS'} || '' or warn "Ignoring missing SENDERFILTER(S)"; $listowners = $ENV{'LISTOWNER'} || $ENV{'LISTOWNERS'} or die "LISTOWNER(S) missing"; +$moderators = $ENV{'MODERATORS'} || ''; while (<>) { # Replace keywords - except in comments @@ -33,6 +34,7 @@ while (<>) { s/^([^#]*)SENDERS/$1$senders/g; s/^([^#]*)SENDERFILTERS/$1$senderfilters/g; s/^([^#]*)LISTOWNERS/$1$listowners/g; + s/^([^#]*)MODERATORS/$1$moderators/g; print; } -- cgit v1.2.3