From 076231507cc426e772da6c22aaeaa2b25cf22528 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 2 Nov 2010 01:16:05 +0100 Subject: Support setting emailhost and urlhost. --- mailman/mklist.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mailman') diff --git a/mailman/mklist.inc b/mailman/mklist.inc index d3bd5c9..364467f 100644 --- a/mailman/mklist.inc +++ b/mailman/mklist.inc @@ -8,6 +8,7 @@ skeldir="$sharedir/skel" MAILDOMAIN="${maildomain:-`head -n 1 /etc/mailname`}" LISTDOMAIN="${listdomain:-lists.$MAILDOMAIN}" +LISTWEBDOMAIN="$listwebdomain" OWNER="${owner:-listmaster@$MAILDOMAIN}" LISTLANG="${lang:-en}" @@ -21,9 +22,11 @@ mklist() { desc="$1"; shift lang="${1:-$LISTLANG}" owner="${2:-$OWNER}" + emailhost="${3:-$LISTDOMAIN}" + urlhost="${4:-$LISTWEBDOMAIN}" if ! echo "$existinglists" | grep -q "^$list\$"; then - newlist -l "$lang" -q "$list" "$owner" "`gpw | head -n 1`" + newlist -l "$lang"${urlhost:+ -u "$urlhost"}${emailhost:+ -e "$emailhost"} -q "$list" "$owner" "`gpw | head -n 1`" fi LISTNAME="$list" LISTDESC="$desc" LISTOWNER="$owner" "$sharedir/mklist.pl" "$skeldir/$type.$lang.py" > "$list.py" config_list -i "$cfgdir/$list.py" "$list" -- cgit v1.2.3