summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-11-12 02:32:20 +0100
committerJonas Smedegaard <dr@jones.dk>2020-11-12 02:32:20 +0100
commitff24b826e7381ffc1cc80348b822538beb6389bd (patch)
tree198b202ba812d2e6bc6c9dacce02d42625689ba7
parentfd7a4ab29b4b02bc45b56110a3109769059f1bfc (diff)
fix revive support for singular LISTOWNER, and similarly support MODERATOR
-rw-r--r--mailman/mklist.inc4
-rwxr-xr-xmailman/mklist.pl4
2 files changed, 4 insertions, 4 deletions
diff --git a/mailman/mklist.inc b/mailman/mklist.inc
index a392dd1..cbe399d 100644
--- a/mailman/mklist.inc
+++ b/mailman/mklist.inc
@@ -30,12 +30,12 @@ mklist() {
owner="${2:-$OWNER}"
emailhost="${3:-$LISTDOMAIN}"
urlhost="${4:-${LISTWEBDOMAIN:-$emailhost}}"
- moderators="${5:-${MODERATORS}}"
+ moderator="${5:-${MODERATOR}}"
if ! echo "$existinglists" | grep -q "^$list\$"; then
newlist -l "$lang"${urlhost:+ -u "$urlhost"}${emailhost:+ -e "$emailhost"} -q "$list" "$owner" "$(mkpw)"
fi
- LISTNAME="$list_anycase" LISTDESC="$desc" SENDERS="$senders" LISTOWNER="$owner" LISTHOST="$emailhost" MODERATORS="$moderators" "$sharedir/mklist.pl" "$skeldir/$type.$lang.py" > "$list.py"
+ LISTNAME="$list_anycase" LISTDESC="$desc" SENDERS="$senders" LISTOWNER="$owner" LISTHOST="$emailhost" MODERATOR="$moderator" "$sharedir/mklist.pl" "$skeldir/$type.$lang.py" > "$list.py"
config_list -i "$cfgdir/$list.py" "$list"
config_list -o "$cfgdir/$list.py" "$list"
}
diff --git a/mailman/mklist.pl b/mailman/mklist.pl
index e1c2d06..7893ad7 100755
--- a/mailman/mklist.pl
+++ b/mailman/mklist.pl
@@ -21,9 +21,9 @@ $listhost = $ENV{'LISTHOST'} or die "LISTHOST missing";
$senders = $ENV{'SENDERS'} or die "SENDERS missing";
$senderfilters = $ENV{'SENDERFILTER'} || $ENV{'SENDERFILTERS'} || ''
or warn "Ignoring missing SENDERFILTER(S)";
-$listowners = $ENV{'LISTOWNER'} || $ENV{'LISTOWNERS'}
+$listowners = $ENV{'LISTOWNERS'} || "'$ENV{'LISTOWNER'}'"
or die "LISTOWNER(S) missing";
-$moderators = $ENV{'MODERATORS'} || '';
+$moderators = $ENV{'MODERATORS'} || "'$ENV{'MODERATOR'}'";
while (<>) {
# Replace keywords - except in comments