
Hi,
Because its related to the same event....
"config.pck", because I didnt know that......
I think sometimes developers/coders dont realise lesser mortals cant code to their standards, and in my case virtually not at all...
regards
Steven Jones
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 19 August 2011 12:40 p.m. To: Steven Jones; mailman-users@python.org Subject: Re: [Mailman-Users] Looking for lists with no members. Repopulsting lists. was: Resetting bounce scores globally
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
#!/bin/sh
for list in bin/list_lists --bare
do if ! (bin/list_members $list | grep @ > /dev/null); then
echo $list: no members
fi
done
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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan