diff options
-rw-r--r-- | mailman/mklist.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mailman/mklist.inc b/mailman/mklist.inc index 7de07fd..956a4b2 100644 --- a/mailman/mklist.inc +++ b/mailman/mklist.inc @@ -17,10 +17,11 @@ refreshlists() { } mklist() { - list="$1"; shift + list_anycase="$1"; shift type="$1"; shift desc="$1"; shift senders="$1"; shift + list=$(printf %s "$list_anycase" | tr '[:upper:]' '[:lower:]') lang="${1:-$LISTLANG}" owner="${2:-$OWNER}" emailhost="${3:-$LISTDOMAIN}" @@ -29,13 +30,13 @@ mklist() { if ! echo "$existinglists" | grep -q "^$list\$"; then newlist -l "$lang"${urlhost:+ -u "$urlhost"}${emailhost:+ -e "$emailhost"} -q "$list" "$owner" "`gpw | head -n 1`" fi - LISTNAME="$list" LISTDESC="$desc" SENDERS="$senders" LISTOWNER="$owner" LISTHOST="$emailhost" "$sharedir/mklist.pl" "$skeldir/$type.$lang.py" > "$list.py" + LISTNAME="$list_anycase" LISTDESC="$desc" SENDERS="$senders" LISTOWNER="$owner" LISTHOST="$emailhost" "$sharedir/mklist.pl" "$skeldir/$type.$lang.py" > "$list.py" config_list -i "$cfgdir/$list.py" "$list" config_list -o "$cfgdir/$list.py" "$list" } populatelist() { - list="$1"; shift + list=$(printf %s "$1" | tr '[:upper:]' '[:lower:]'); shift [ ! -s "$cfgdir/$list.members" ] || add_members -r "$cfgdir/$list.members" -w n -a n "$list" [ ! -s "$cfgdir/$list.members-digest" ] || add_members -d "$cfgdir/$list.members-digest" -w n -a n "$list" |