Skip to content
Snippets Groups Projects
Commit 734097e3 authored by Patrick Cernko's avatar Patrick Cernko
Browse files

support for renaming lists and including domain

parent 5d528930
Branches
No related tags found
No related merge requests found
...@@ -11,8 +11,12 @@ if [ -z "$mailmanlist" ]; then ...@@ -11,8 +11,12 @@ if [ -z "$mailmanlist" ]; then
fi fi
mmlistname=${mailmanlist%@*} mmlistname=${mailmanlist%@*}
mmdomain=${mailmanlist#*@} mmdomain=${mailmanlist#*@}
robot=${mmdomain/lists/sympa}
sympalistname=$mmlistname sympalistname=$mmlistname
robot=${mmdomain/lists/sympa}
if [ -n "$2" ]; then
sympalistname=${2%@*}
robot=${2#*@}
fi
mmarchive=/var/lib/mailman/archives/private/$mmlistname.mbox/$mmlistname.mbox mmarchive=/var/lib/mailman/archives/private/$mmlistname.mbox/$mmlistname.mbox
if [ ! -f "/etc/sympa/$robot/robot.conf" ]; then if [ ! -f "/etc/sympa/$robot/robot.conf" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment