summaryrefslogtreecommitdiff
path: root/mailman/mklist.pl
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-11-11 09:47:32 +0100
committerJonas Smedegaard <dr@jones.dk>2010-11-11 09:47:32 +0100
commit87d53b78b69cd9ff5deeabf3dbd172374b8c3461 (patch)
treea27ab39a972078aa4b8d8c84fc78c3079836aaea /mailman/mklist.pl
parentf09e8af52b32365de60f6cad6215c024c7d6035f (diff)
Support optional emailhost and urlhost arguments to mklist(); drop unusused LISTDOMAIN.
Diffstat (limited to 'mailman/mklist.pl')
-rwxr-xr-xmailman/mklist.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/mailman/mklist.pl b/mailman/mklist.pl
index 8d3936b..c15d799 100755
--- a/mailman/mklist.pl
+++ b/mailman/mklist.pl
@@ -25,7 +25,8 @@ while (<>) {
# 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/^([^#]*)SENDERFILTER/$1$senderfilter/g;
s/^([^#]*)LISTOWNER/$1$listowner/g;