[Tutor] odd bodkins and novel emissions

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Tue, 8 Jan 2002 13:04:23 -0800 (PST)


On Tue, 8 Jan 2002, kirk Bailey wrote:

> OK, it emits thus:
> 
>   ns# ./TLlistmaster.py < testfile
>   From:= idiot1@netzero.net
>   Subject field as extracted:='Re: quit idiot1@netzero.net testlist3
> 1010514864'
>   CLEANED UP subject line='quit idiot1@netzero.net testlist3
> 1010514864'
>   command='quit'
>   oldfrom='idiot1@netzero.net'
>   listname='testlist3'
>   Pending action='quit idiot1@netzero.net testlist3 1010514864'
>   command='quit'!   Listname= testlist3
>   Listing members of testlist3 follows:
>   -----------------------------------
>   Member= 'quit idiot1@netzero.net testlist3 1010514864'
>   Member= 'quit idiot1@netzero.net testlist3 1010514864'
>   -----------------------------------
>   They are already not a member! Aborting!


Question: what does your member list look like?  Is it a list of email
addresses, or a list of quitting commands?  The reason I'm asking this is
because I'm guessing that what comes from readmembers() is something like:

###
membernow = ['quit foobar@baz.org testlist1 1010514864',
             'quit balin@moria.org testlist2 2020202020']
###

which I'll call a list of quitting commands.  Is this right?

Your from_addr, on the other hand, is just an email address like
"foobar@baz.org".  Your code is doing a comparison:

###
if from_addr not in membernow:
    print 'They are already not a member! Aborting!'
###

so that's why I'm focusing on the contents of your members list.



Good luck!