Resetting bounce scores globally
Hi,
Is there a way to reset all ppls bounces in all lists?
Ive tried withlist -a -r reset_bounce
but no joy
regards
Steven Jones
Steven Jones wrote:
Is there a way to reset all ppls bounces in all lists?
Ive tried withlist -a -r reset_bounce
but no joy
Did you first download and install per its docstring <http://www.msapiro.net/scripts/reset_bounce.py> (mirrored at <http://fog.ccsf.cc.ca.us/~msapiro/scripts/reset_bounce.py>)?
If not, do so. If so, what specifically was the result from
withlist -a -r reset_bounce
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi,
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.
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?
regards
Steven Jones
Technical Specialist - Linux RHCE
Victoria University, Wellington, NZ
0064 4 463 6272
From: Mark Sapiro [mark@msapiro.net] Sent: Thursday, 18 August 2011 4:55 p.m. To: Steven Jones; mailman-users@python.org Subject: Re: [Mailman-Users] Resetting bounce scores globally
Steven Jones wrote:
Is there a way to reset all ppls bounces in all lists?
Ive tried withlist -a -r reset_bounce
but no joy
Did you first download and install per its docstring <http://www.msapiro.net/scripts/reset_bounce.py> (mirrored at <http://fog.ccsf.cc.ca.us/~msapiro/scripts/reset_bounce.py>)?
If not, do so. If so, what specifically was the result from
withlist -a -r reset_bounce
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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
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
Steven Jones wrote:
Because its related to the same event....
But you still haven't said if you still have a problem with reset_bounce or what the resolution was.
"config.pck", because I didnt know that......
Sorry. The process of moving lists between servers has been discussed many times on this list and in the FAQ. I assumed you might have seen some of that.
I think sometimes developers/coders dont realise lesser mortals cant code to their standards, and in my case virtually not at all...
I'm sure that sometimes that's true of me, but if you look at my posts in the archives of this list, I think you'll find that I usually bend over backwords to explain things patiently, clearly and understandably.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi,
"But you still haven't said if you still have a problem with reset_bounce or what the resolution was. "
I had read this from googling but I didnt understand what it actually meant and the stuff I found was 2007 etc and seemed to conflict with newer....hadnt sussed it out.
Ive had several level1s this morning so ive not progressed this as yet, however only one list has complained and another one lost its members so i had to fix that first the rest seem OK....but I need to do a health check somehow.......
Moving lists, yes I followed how to move a list, took your docs and made it "almost me proof" but didnt take on / notice the components and what they do....
Coding for me is like looking at say french, I dont understand a word of it...its a blind spot of mine....in some ways that's good as I'd be asked to code all day if I could....and I hate doing it.
regards
Steven Jones
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 19 August 2011 1:18 p.m. To: Steven Jones; mailman-users@python.org Subject: Re: [Mailman-Users] Looking for lists with no members. Repopulstinglists. was: Resetting bounce scores globally
Steven Jones wrote:
Because its related to the same event....
But you still haven't said if you still have a problem with reset_bounce or what the resolution was.
"config.pck", because I didnt know that......
Sorry. The process of moving lists between servers has been discussed many times on this list and in the FAQ. I assumed you might have seen some of that.
I think sometimes developers/coders dont realise lesser mortals cant code to their standards, and in my case virtually not at all...
I'm sure that sometimes that's true of me, but if you look at my posts in the archives of this list, I think you'll find that I usually bend over backwords to explain things patiently, clearly and understandably.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2011-08-18 9:18 PM, Mark Sapiro <mark@msapiro.net> wrote:
I think sometimes developers/coders dont realise lesser mortals cant code to their standards, and in my case virtually not at all...
I'm sure that sometimes that's true of me, but if you look at my posts in the archives of this list, I think you'll find that I usually bend over backwords to explain things patiently, clearly and understandably.
An incredibly loud understatement... ;)
Mark, you are hands down the *most* patient, knowledgeable *and* articulate person I've ever encountered on any support list.
Thanks for all that you do!
Tanstaafl wrote:
Mark, you are hands down the *most* patient, knowledgeable *and* articulate person I've ever encountered on any support list.
Thanks for all that you do!
Even if I occasionally misspell words (backwords vs backwards) and often make typos (Repopulsting vs Repopulating) :)
Thanks for the feedback.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2011-08-19 7:57 PM, Mark Sapiro <mark@msapiro.net> wrote:
Even if I occasionally misspell words (backwords vs backwards) and often make typos (Repopulsting vs Repopulating) :)
Oh, that just reminds us all that you are indeed human, not an alien overlord... ;)
Sent: Friday, August 19, 2011 1:40 AM To: Steven Jones; mailman-users@python.org Subject: Re: [Mailman-Users] Looking for lists with no members. Repopulstinglists. 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.
In the great spirit of "Me too!"-ism, here's my offering of a little script I use with my local mailman setup:
===== #!/usr/bin/perl $MAILMAN_BASEDIR='/usr/local/mailman'; open(FOO,"$MAILMAN_BASEDIR/bin/list_lists -b |"); while ($line=<FOO>) { chomp($line); print("==> $line: "); chomp($line); open(FO1,"$MAILMAN_BASEDIR/bin/list_members $line|"); @Members=<FO1>; close(FO1); $Count=$#Members+1; print("$Count\n"); } close(FOO);
Save it as a text file, chmod it +x, check that the perl call points to the right place and $MAILMAN_BASEDIR likewise.
Pretty pedestrian, not very pretty output but it works.
Steff
participants (4)
-
Mark Sapiro
-
Steff Watkins
-
Steven Jones
-
Tanstaafl