summaryrefslogtreecommitdiff
path: root/mailman/mklist.pl
diff options
context:
space:
mode:
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;
}