removing members with non-standard characters
![](https://secure.gravatar.com/avatar/7ca62df3121f41f36c1baaa91ec1a9c9.jpg?s=120&d=mm&r=g)
I'm not sure how one of my list admins managed to do this, but they have four members on their list that look like this in the membership list: b <http://lists.ncmail.net/mailman/options/nciin-network-ops/%00b%00r%00i%00a%0...>
![](https://secure.gravatar.com/avatar/85e516d12e7b6c3f7b0dba64b53b17ba.jpg?s=120&d=mm&r=g)
On 12/6/06, Anne Ramey <anne.ramey@ncmail.net> wrote:
See FAQ 3.13. How do I remove a user name or email address with an illegal character in it? <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.013.htp>
--
- Patrick Bogen
![](https://secure.gravatar.com/avatar/7ca62df3121f41f36c1baaa91ec1a9c9.jpg?s=120&d=mm&r=g)
Patrick Bogen wrote:
I should have mentioned that will not work for this case. You'll notice that these are not all nice ascii characters. some are spaces, some deletes, some other hex values...I don't know what they all are because they will not copy and past nicely. They don't appear at all when I do list_members. Any other ideas
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Anne Ramey wrote:
There are several options and I have lots of ideas.
Have you tried just checking the 'unsub' box next to the entry?
The 'address' you see looks a lot like the URL of the options page that the address is a link to. Perhaps you are not seeing the address at all, but rather, you are seeing the result of funny characters in the address confusing the browser's rendering of the anchor tag. It looks like <http://lists.ncmail.net/mailman/options/nciin-network-ops/%00b%00r%00i%00a%0...> is a link to the options page of the user whose address is
%00b%00r%00i%00a%00n%00v%00--at--%00n%00c%00c%00c%00s%00.%00c%00c%00.%00n%00c%00.%00u%00s%00%00%00%00%00%1F%00%00%00%01%00%00%00%00%00%00%00%03%00%00%00
(if you replace --at-- with @, %00 with ^@, %1F with ^_, %01 with ^A and %03 with ^C)
Do you see brianv@ncccs.cc.nc.us on the list_members output? Does this entry appear in the membership list on its own page at the beginning?
It also looks like someone mass subscribed a list pasted from or output by a word processor
If the bad addresses don't appear in list_members (I don't know why they wouldn't, but maybe they just appear with the control characters that you don't see and thus look OK) you can do
bin/list_members listname | bin/synch_members -f - -n listname
and if you like what that says, you can do
bin/list_members listname | bin/synch_members -f - listname
You might also try
bin/list_members -i listname
to see what that shows.
You could create a simple withlist script to validate member addresses and delete invalid ones..
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/7ca62df3121f41f36c1baaa91ec1a9c9.jpg?s=120&d=mm&r=g)
Mark Sapiro wrote:
yes, it says it is successful, but the addresses are still there
There are 4 like this, and yes, they appear on their own page at the beginning of the membership list.
This says: ./list_members listname | ./sync_members -f - -n listname Dry run mode Invalid : brianv@ncccs.cc.nc.us You must fix the preceding invalid addresses first. So I guess no luck there.
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Anne Ramey wrote:
Mark Sapiro wrote:
So the address does appear in the list_members output.
Try this one
bin/list_members -i listname | bin/remove_members -f - -n listname
If that doesn't work, see <http://veenet.value.net/~msapiro/scripts/> or <http://fog.ccsf.edu/~msapiro/scripts/> for a link to an experimental withlist script that should do it.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Mark Sapiro wrote:
BTW, please report results. In particular, I'm interested in knowing if the list_members -i | remove_members fails and the withlist script succeeds. In that case, I'll add a pointer to the withlist script to the several methods already in FAQ 3.13.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Anne Ramey wrote:
The list_members -i | remove_members pipe is what worked for me.
Thanks for clarifying.
BTW, this pipe is one of the techniques suggested in <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.013.htp>. Since you didn't seem to see it there, I have updated the FAQ to try to emphasize that this is the method of choice. Please take a look at the FAQ and see if it looks better to you.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/85e516d12e7b6c3f7b0dba64b53b17ba.jpg?s=120&d=mm&r=g)
On 12/6/06, Anne Ramey <anne.ramey@ncmail.net> wrote:
See FAQ 3.13. How do I remove a user name or email address with an illegal character in it? <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.013.htp>
--
- Patrick Bogen
![](https://secure.gravatar.com/avatar/7ca62df3121f41f36c1baaa91ec1a9c9.jpg?s=120&d=mm&r=g)
Patrick Bogen wrote:
I should have mentioned that will not work for this case. You'll notice that these are not all nice ascii characters. some are spaces, some deletes, some other hex values...I don't know what they all are because they will not copy and past nicely. They don't appear at all when I do list_members. Any other ideas
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Anne Ramey wrote:
There are several options and I have lots of ideas.
Have you tried just checking the 'unsub' box next to the entry?
The 'address' you see looks a lot like the URL of the options page that the address is a link to. Perhaps you are not seeing the address at all, but rather, you are seeing the result of funny characters in the address confusing the browser's rendering of the anchor tag. It looks like <http://lists.ncmail.net/mailman/options/nciin-network-ops/%00b%00r%00i%00a%0...> is a link to the options page of the user whose address is
%00b%00r%00i%00a%00n%00v%00--at--%00n%00c%00c%00c%00s%00.%00c%00c%00.%00n%00c%00.%00u%00s%00%00%00%00%00%1F%00%00%00%01%00%00%00%00%00%00%00%03%00%00%00
(if you replace --at-- with @, %00 with ^@, %1F with ^_, %01 with ^A and %03 with ^C)
Do you see brianv@ncccs.cc.nc.us on the list_members output? Does this entry appear in the membership list on its own page at the beginning?
It also looks like someone mass subscribed a list pasted from or output by a word processor
If the bad addresses don't appear in list_members (I don't know why they wouldn't, but maybe they just appear with the control characters that you don't see and thus look OK) you can do
bin/list_members listname | bin/synch_members -f - -n listname
and if you like what that says, you can do
bin/list_members listname | bin/synch_members -f - listname
You might also try
bin/list_members -i listname
to see what that shows.
You could create a simple withlist script to validate member addresses and delete invalid ones..
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/7ca62df3121f41f36c1baaa91ec1a9c9.jpg?s=120&d=mm&r=g)
Mark Sapiro wrote:
yes, it says it is successful, but the addresses are still there
There are 4 like this, and yes, they appear on their own page at the beginning of the membership list.
This says: ./list_members listname | ./sync_members -f - -n listname Dry run mode Invalid : brianv@ncccs.cc.nc.us You must fix the preceding invalid addresses first. So I guess no luck there.
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Anne Ramey wrote:
Mark Sapiro wrote:
So the address does appear in the list_members output.
Try this one
bin/list_members -i listname | bin/remove_members -f - -n listname
If that doesn't work, see <http://veenet.value.net/~msapiro/scripts/> or <http://fog.ccsf.edu/~msapiro/scripts/> for a link to an experimental withlist script that should do it.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Mark Sapiro wrote:
BTW, please report results. In particular, I'm interested in knowing if the list_members -i | remove_members fails and the withlist script succeeds. In that case, I'll add a pointer to the withlist script to the several methods already in FAQ 3.13.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Anne Ramey wrote:
The list_members -i | remove_members pipe is what worked for me.
Thanks for clarifying.
BTW, this pipe is one of the techniques suggested in <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.013.htp>. Since you didn't seem to see it there, I have updated the FAQ to try to emphasize that this is the method of choice. Please take a look at the FAQ and see if it looks better to you.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Anne Ramey
-
Mark Sapiro
-
Patrick Bogen