[Mailman-Users] Looking for lists with no members. Repopulsting lists. was: Resetting bounce scores globally

Mark Sapiro mark at msapiro.net
Fri Aug 19 02:40:10 CEST 2011

Steven Jones wrote:
>Is there a way to scan my 440 lists and look for lists with no subscribers?  it seems my localhost ipv6 problem has caused at least one list to be emptied of all subscribers by the bounce processing.....so I have had to re-populate it.

I don't know why this is a reply to my reply in the "Resetting bounce
scores globally" thread, and did you resolve that?

Anyway, there are various ways you could accomplish this. You could
create a shell script along the lines of

for list in `bin/list_lists --bare`
do if ! (bin/list_members $list | grep @ > /dev/null); then
  echo $list: no members

Or you could create a withlist script like

def find_empty(mlist):
    if len(mlist.getMembers()) == 0:
        print "%s has no members" % mlist.real_name

save it as bin/find_empty.py and run

bin/withlist -a -r find_empty

>After that is there a way to extract all the subscribers off the old lists server and inject them back into the new lists on the new lists server?

Why not just copy the lists/LISTNAME/config.pck from the old server to
the new. Or if for some reason you don't want to do that, you could
copy it to lists/dummy_list/config.pck on the new server and then run

  bin/list_members dummy_list

with the desired list_members options.

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