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 "[EMAIL PROTECTED]" > <list>
>>bin/sync_members -f <list> <list>
>>
>>Allan
>>
>>
>>
>>>Tim wrote:
>>>>
>>>>We have a subscriber address that has /t on the end of it ([EMAIL 
>>>>PROTECTED]/t) which can only be seen when dumping the lists config file.  
>>>>The subscriber address looks normal ([EMAIL PROTECTED]) 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: [EMAIL PROTECTED]        [EMAIL PROTECTED]       |
| 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: [EMAIL PROTECTED]        [EMAIL PROTECTED]                |
| WWW:   http://www.ugs.com          http://www.rc.org/           |
|                                                                 |
|_Anything is possible with the right tools and right information_|
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to