On 08/25/2016 06:01 AM, Steve Wehr wrote:
> 
> In the interim, I used Mark Sapiro's script to reset the moderation bits on
> all AOL users, encased in a little shell script I wrote:
> 
> #!/bin/bash
> 
> # This script resets the bounce bits for certain users in ALL lists.
> #
> # Run this script as ROOT
> for listname in $(ls /var/lib/mailman/lists/);


A more robust way to do this is

for listname in $(/usr/lib/mailman/bin/list_lists -b);

because there may be files or non-list directories in
/var/lib/mailman/lists/

> do
>    echo Resetting bounce bits in list $listname
>    # Reset bounce bits for only AOL.COM members.
>    /usr/lib/mailman/bin/withlist -r reset_bounce $listname -d aol.com
> done;
> 
> Hope this is helpful.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to