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
------------------------------------------------------
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