summaryrefslogtreecommitdiff
path: root/mailman/mklist.pl
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-11-12 01:15:06 +0100
committerJonas Smedegaard <dr@jones.dk>2020-11-12 01:15:06 +0100
commitfd7a4ab29b4b02bc45b56110a3109769059f1bfc (patch)
treee00317bf37db8cd65f86b735cd2dc271baf3edfd /mailman/mklist.pl
parent88baf92a573f9cf184536d34086b3f79cd418d23 (diff)
support MODERATORS
Diffstat (limited to 'mailman/mklist.pl')
-rwxr-xr-xmailman/mklist.pl4
1 files changed, 3 insertions, 1 deletions
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;
}