[Mailman-Users] Changing reply_goes_to_list

Mark Sapiro mark at msapiro.net
Thu Apr 9 19:46:21 CEST 2009


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 <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list