Edward Ned Harvey wrote:
>Accidentally, I had DEFAULT_REPLY_GOES_TO_LIST = 1 when I wanted it to be 0.
>Unfortunately, a whole bunch of lists have already been created with 1 ...
>So before I do the following, I want to run it by here to make sure I¹m
>not going to screw something up.
>
>For that matter, maybe there¹s a simpler way to do this?
>
>Run this as root:
>
>#!/bin/bash
>export PATH=$PATH:/usr/lib/mailman/bin
>for list in `list_lists -b` ; do
> echo "Converting ${list} ..."
> config_list -o ${list}-config.txt $list
> cat ${list}-config.txt | sed 's/reply_goes_to_list =1/reply_goes_to_list =
> 0/' > ${list}-config2.txt
> config_list -i ${list}-config2.txt $list
>done
Yes, there is a much simpler way to to this. Not that the above won't
work; it's just not necessary because config_list -i only changes
those things which are in it's input, so all you need is:
#!/bin/bash
export PATH=$PATH:/usr/lib/mailman/bin
file=`mktemp`
echo reply_goes_to_list = 0 > $file
for list in `list_lists -b` ; do
echo "Converting ${list} ..."
config_list -i $file $list
done
rm $file
There is a FAQ on this at <http://wiki.list.org/x/MIBp>.
--
Mark Sapiro <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://wiki.list.org/x/QIA9