summaryrefslogtreecommitdiff
path: root/mailman/mklist.pl
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-11-11 09:57:04 +0100
committerJonas Smedegaard <dr@jones.dk>2010-11-11 09:57:04 +0100
commit001307c578431cedf5b4e495109145ca3c04da4b (patch)
treed56e2b95c2d7ae5fab27c0845791c46719b58053 /mailman/mklist.pl
parent50be5f7c0f3d5b245da0c9ab640b6e86e8a612ea (diff)
parent87d53b78b69cd9ff5deeabf3dbd172374b8c3461 (diff)
Merge branch 'master' of git://source.jones.dk/local-COMMON
Conflicts (manually resolve): mailman/mklist.inc
Diffstat (limited to 'mailman/mklist.pl')
-rwxr-xr-xmailman/mklist.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/mailman/mklist.pl b/mailman/mklist.pl
index ff62787..8c7e72c 100755
--- a/mailman/mklist.pl
+++ b/mailman/mklist.pl
@@ -28,10 +28,11 @@ $listowners ||= $ENV{'LISTOWNERS'};
$listowners ||= "'" . $listowner . "'" or die "LISTOWNER(S) missing";
while (<>) {
- # Replace keywords - execept in comments
+ # Replace keywords - except in comments
s/^([^#]*)LISTNAME/$1$listname/g;
s/^([^#]*)LISTDESC/$1$listdesc/g;
- s/^([^#]*)LISTHOST/$1$listhost/g;
+ s/^([^#]*)LISTHOST/$1$listhost/g if ($listhost);
+ s/^([^#]*)LISTHOST/#$1/g unless ($listhost);
s/^([^#]*)SENDERS/$1$senders/g;
s/^([^#]*)SENDERFILTERS/$1$senderfilters/g;
s/^([^#]*)LISTOWNERS/$1$listowners/g;