diff options
Diffstat (limited to 'mailman/mklist.inc')
-rw-r--r-- | mailman/mklist.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mailman/mklist.inc b/mailman/mklist.inc index 3d25d49..364467f 100644 --- a/mailman/mklist.inc +++ b/mailman/mklist.inc @@ -8,8 +8,9 @@ skeldir="$sharedir/skel" MAILDOMAIN="${maildomain:-`head -n 1 /etc/mailname`}" LISTDOMAIN="${listdomain:-lists.$MAILDOMAIN}" +LISTWEBDOMAIN="$listwebdomain" OWNER="${owner:-listmaster@$MAILDOMAIN}" -LANG="${lang:-en}" +LISTLANG="${lang:-en}" refreshlists() { existinglists="`/usr/sbin/list_lists -b`" @@ -19,11 +20,13 @@ mklist() { list="$1"; shift type="$1"; shift desc="$1"; shift - lang="${1:-$LANG}" + 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" |