Append a list owner to all lists
![](https://secure.gravatar.com/avatar/f3b98b0ca2f426c95a8b95dd32164a43.jpg?s=120&d=mm&r=g)
Hello,
All of our lists have separate list owners, but I would like to add a secondary list owner to all the mailing lists, is there a way to do this by command line?
Regards, Dave Anderson System Administrator University of the Fraser Valley
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Dave Anderson wrote:
All of our lists have separate list owners, but I would like to add a secondary list owner to all the mailing lists, is there a way to do this by command line?
There are a couple of ways to do this. The most flexible is probably the withlist script at <http://www.msapiro.net/scripts/change_admins.py> (mirrored at <http://fog.ccsf.edu/~msapiro/scripts/change_admins.py>).
Another way to do it would be a shell script similar to
#!/bin/sh
f=mktemp
echo > $f "mlist.owner += ['aditional_owner@example.com']"
cd /path/to/mailman
for list in bin/list_lists --bare
; do
bin/config_list -i $f $list
done
rm $f
The drawback of this shell script is it doesn't check if 'aditional_owner@example.com' is already an owner, and if it is, the list will wind up with a duplicate in owner. This is not an issue with the change_admins.py script as it does check.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Dave Anderson
-
Mark Sapiro