[Mailman-Users] Unable to remove email with control chars from alist

Hugo Kobayashi hkkobayashi at gmail.com
Fri Oct 22 21:48:47 CEST 2004


On Fri, 22 Oct 2004 12:19:40 -0700, Mark Sapiro <msapiro at value.net> wrote:
> Hugo Kobayashi wrote:
> >
> >% python -i bin/withlist -l mylist
> >Loading list mylist (locked)
> >The variable `m' is the mylist MailList instance
> >>>> m.removeMember('na,user at host.tld')
> >Traceback (most recent call last):
> >  File "<console>", line 1, in ?
> >  File "/usr/local/mailman/Mailman/OldStyleMemberships.py", line 220,
> >in removeMember
> >    self.__assertIsMember(member)
> >  File "/usr/local/mailman/Mailman/OldStyleMemberships.py", line 113,
> >in __assertIsMember
> >    raise Errors.NotAMemberError, member
> >NotAMemberError: na,user at host.tld
> 
> It looks like you aren't following the instructions correctly.
> 
> First of all, the "na," is part of the example bad address. I.e. in the
> example the bad address is "name at example.com" with a comma in the
> middle of "name" making it "na,me at example.com"
> 
> What you need is
> 
>   m.removeMember('user at host.tld\r\n')

Thank you. Sometimes it's hard to see the obvious... In my mind, I was thinking
of this comma as an attribute separator, not as an invalid character....

% python -i bin/withlist -l mylist
Loading list mylist (locked)
The variable `m' is the gter MailList instance
>>> m.removeMember('user at host.tld\r\n')
>>> m.Save()
>>> ^D
>>> ^D
Unlocking (but not saving) list: mylist
Finalizing



More information about the Mailman-Users mailing list