[Mailman-Users] Can't Delete Corrupt Subscriber Address

Allan Hansen hansen at rc.org
Sun Feb 26 19:42:44 CET 2006


If you maintain people's names on the list, then the same procedure can be
used to remove someone based on some string in the name, in case you know
the name but not the address (I often get such requests):

bin/list_members -f <list> | grep -e "<string>"| wc
<count check>
bin/list_members -f <list> | grep -v -e "<string>" > <list>
bin/list_members -f <list> <list>

All this can, of course, be worked into a simple script that also does the count check
and that will return 'ambiguous', 'OK', 'not found' as appropriate.
Then you should be able to remove someone with just

delete_member <list> <some_string_of_characters>

As for adding to the FAQ, I'll respectfully bow out and leave it to more
experienced users to do if they deem the above an appropriate addition.

Yours,

    Allan

At 9:42 -0500 2/26/06, Tim wrote:
>Excellent!  Worked like a charm.  This should be in the FAQ.
>
>Thanks much!
>
>Tim
>
>
>At 07:43 AM 2/26/2006, Allan Hansen wrote:
>>How about:
>>
>>bin/list_members -f <list>|grep -v -e "xxx at xxx.com" > <list>
>>bin/sync_members -f <list> <list>
>>
>>Allan
>>
>>
>>
>>>Tim wrote:
>>>>
>>>>We have a subscriber address that has /t on the end of it (xxx at xxx.com/t) which can only be seen when dumping the lists config file.  The subscriber address looks normal (xxx at xxx.com) when looking for it using any other method (list members, etc).
>>>
>>>

-- 
 _________________________________________________________________
| Allan Hansen, Ph.D.                                             |
|    P.O. Box 2423, Cypress, CA 90630, U.S.A.                     |
|                                                                 |
| Work:                              Home:                        |
| Phone: +1-714/952-6015             +1-714/875-8870              |
| Fax:   +1-714/952-6746                                          |
| Email: allan.hansen at ugs.com        allan at hansen-family.us       |
| WWW:   http://www.ugs.com          http://www.hansen-family.us/ |
|                                                                 |
|_Anything is possible with the right tools and right information_|
-- 
 _________________________________________________________________
| Allan Hansen, Ph.D.                                             |
|    P.O. Box 2423, Cypress, CA 90630, U.S.A.                     |
|                                                                 |
| Work:                              Home:                        |
| Phone: +1-714/952-6015             +1-714/875-8870              |
| Fax:   +1-714/952-6746                                          |
| Email: allan.hansen at ugs.com        hansen at rc.org                |
| WWW:   http://www.ugs.com          http://www.rc.org/           |
|                                                                 |
|_Anything is possible with the right tools and right information_|



More information about the Mailman-Users mailing list