Alex --
Thanks again. I am running Mailman 2.1 with python 2.2.2 on a Red Hat 7.1 system. The
syntax of your python script matched what I saw in the withlist example, but there
must be something else that prevents me from deleting that address with the quotes.
I've been running Mailman for 3 years and I never had a subscriber with special
characters in their address before. Nor have I had problems like I've experienced
lately with this Mailman list: only a few members getting the mailings, irregular
bounce messages, etc. Is the new version of Mailman allowing these special cahracters
that were not possible with 2.0x?
I have rmlist that list and dumped the members editing the bad address and then added
them into a new list. The archives were pretty limited and it is a moderator
only-posting list.
Thanks again for your suggestions.
---------- Original Message ----------------------------------
From: alex wetmore <[EMAIL PROTECTED]>
Date: Thu, 27 Mar 2003 14:55:43 -0800 (PST)
>What version of mailman are you using? If you run withlist it should
>give you an example similar function called "changepw", if so then
>just model rmmember to be similar.
>
>alex
>
>On Thu, 27 Mar 2003, ljacobs wrote:
>
>> Thanks Alex, but there must be something I am missing. I tried the script you sent,
>> but the member did not get deleted and the error is below (Server is "tulku" and
>> the list is "wisdomnews"):
>>
>> tulku mailman]# bin/withlist -l -r rmmember wisdomnews "pgyallay"@[EMAIL PROTECTED]
>> Importing rmmember...
>> Running rmmember.rmmember()...
>> Loading list wisdomnews (locked)
>> key:
>> Traceback (most recent call last):
>> File "bin/withlist", line 275, in ?
>> main()
>> File "bin/withlist", line 256, in main
>> r = do_list(listname, args, func)
>> File "bin/withlist", line 189, in do_list
>> return func(m, *args)
>> File "/home/mailman/rmmember.py", line 6, in rmmember
>> except NotAMember:
>> NameError: global name 'NotAMember' is not defined
>> Unlocking (but not saving) list: wisdomnews
>>
>>
>> ---------- Original Message ----------------------------------
>> From: alex wetmore <[EMAIL PROTECTED]>
>> Date: Thu, 27 Mar 2003 14:24:35 -0800 (PST)
>>
>> >On Thu, 27 Mar 2003, ljacobs wrote:
>> >> Somehow a user got subscribed as "pgyallay"@[EMAIL PROTECTED] and this
>> >> seems to be causing problems with my list. Unfortunately I am
>> >> unable to unsubscribe this user using the command line
>> >> remove_members or the web interface.
>> >>
>> >> How do I remove this member from the list?
>> >
>> >I wrote a routine that is compatible with "withlist" for doing
>> >this. Save it into rmmember.py.
>> >
>> >def rmmember(mlist, addr):
>> > try:
>> > print 'key: ', mlist.getMemberKey(addr)
>> > mlist.removeMember(mlist.getMemberKey(addr))
>> > mlist.Save()
>> > except NotAMember:
>> > print 'No address matched:', addr
>> >
>> >Run "bin/withlist" to see usage on how withlist works. This
>> >command should remove your member:
>> >
>> >% bin/withlist -l -r rmmember mylist "pgyallay"@[EMAIL PROTECTED]
>> >
>> >alex
>> >
>> >
>> >---
>> >[This E-mail scanned for viruses by Declude Virus]
>> >
>> >
>>
>>
>>
>> ________________________________________________________________
>> Sent via the WebMessaging system at mandala-designs.com
>>
>>
>>
>>
>>
>
>---
>[This E-mail scanned for viruses by Declude Virus]
>
>
________________________________________________________________
Sent via the WebMessaging system at mandala-designs.com
------------------------------------------------------
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/
This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org