Con Wieland wrote:
>
>On Apr 2, 2007, at 11:32 AM, Mark Sapiro wrote:
>
>> First, did you see and try the following from FAQ 3.13
>>
>> ----------------------------------------------------
>>
>> Before trying the method(s) below, first try
>>
>> % bin/list_members -i listname
>>
>> If that lists the addresses you want removed, try
>>
>> % bin/list_members -i listname | bin/remove_members -f - listname
>
>Yes I did, it didn't show up that way.
OK.
>> If that doesn't work, try the following withlist fragment
>>
>>>>> m.removeMember("""constance.frei
>> ... [EMAIL PROTECTED]""")
>>>>> m.Save()
>>>>> ^D
>>
>
>I get this error:
>
> >>> m.removeMember("""constance.frei
>... [EMAIL PROTECTED]""")
>Traceback (most recent call last):
> File "<console>", line 1, in ?
> File "/usr/local/mailman/Mailman/OldStyleMemberships.py", line
>219, in removeMember
> assert self.__mlist.Locked()
>AssertionError
Because you didn't specify the -l (or --lock) option on the withlist
command.
>> and if that doesn't work, try
>>
>>>>> del m.members["""constance.frei
>> ... [EMAIL PROTECTED]"""]
>>>>> m.Save()
>>>>> ^D
>
>and with this I get:
>
> >>> del m.members["""constance.frei
>... [EMAIL PROTECTED]"""]
>Traceback (most recent call last):
> File "<console>", line 1, in ?
>KeyError: '[EMAIL PROTECTED]'
Is this invalid member a regular member, or a digest member? If digest,
the above needs to be
>>> del m.digest_members["""constance.frei
... [EMAIL PROTECTED]"""]
BUT you should first try the removeMember() method with the list locked.
If none of these work, there something transparent in the key beyond
just the simple new-line. Try
% bin/find_member -l listname "[EMAIL PROTECTED]" | od -t c to see what
besides \n is in '[EMAIL PROTECTED]'.
Possibly it is '\r' instead of '\n', in which case, try
>>> m.removeMember('[EMAIL PROTECTED]')
in withlist with the list locked.
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
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&file=faq01.027.htp