Re: POP3 Mail Download

2006-03-18 Thread Scott David Daniels
Bob Piton wrote: > I think what he is hinting at is that you are missing a right parentheses. > > msgNum = int(split(msg, " ")[0] > should be: > msgNum = int(split(msg, " "))[0] Or more likely: msgNum = int(split(msg, " ")[0]) > msgSize = int(split(msg, " ")[1] > should be: > msgSize = int(s

Re: POP3 Mail Download

2006-03-18 Thread Kent Johnson
Bob Piton wrote: > On Sat, 18 Mar 2006 18:34:56 -0500, Kevin F wrote: >>i have no idea what you are hinting at, can you please just tell me what i >>need to change? > > > I know how you feel; it's brutal trying to get elementary information from > this group. You could try the python-tutor list,

Re: POP3 Mail Download

2006-03-18 Thread Alex Martelli
Kevin F <[EMAIL PROTECTED]> wrote: ... > > msgSize = int(split(msg, " ")[1] # line is missing closing paren, ... > thanks, that helped fix the syntax error, however, now when i run it, it > gives me an error for 'split', saying "name 'split' is not defined" > > i'm new to python so

Re: pop3 mail download - using python.org example

2006-03-18 Thread Alex Martelli
Kevin F <[EMAIL PROTECTED]> wrote: > i'm trying to this this code to access my pop server but it only prompts > for a password and not a username, how do i get it to ask for my > username as well? getpass.getuser() doesn't prompt, it gets your username from the environment or the OS. If you wan

Re: POP3 Mail Download

2006-03-18 Thread Bob Piton
On Sat, 18 Mar 2006 18:34:56 -0500, Kevin F wrote: > Dennis Lee Bieber wrote: >> On Sat, 18 Mar 2006 17:24:05 -0500, Kevin F <[EMAIL PROTECTED]> >> declaimed the following in comp.lang.python: >> >>> I fixed the indentation to: >>> >>> emails = [] >>> for msg in messagesInfo: >>> msgNum

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Paul McGuire wrote: > "Kevin F" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Dennis Lee Bieber wrote: >>> On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> >>> declaimed the following in comp.lang.python: >>> >>> However, if I try to actually download the mess

Re: POP3 Mail Download

2006-03-18 Thread Paul McGuire
"Kevin F" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dennis Lee Bieber wrote: > > On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > > > > >> However, if I try to actually download the messages themselves, my > >>

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Dennis Lee Bieber wrote: > On Sat, 18 Mar 2006 17:24:05 -0500, Kevin F <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> I fixed the indentation to: >> >> emails = [] >> for msg in messagesInfo: >> msgNum = int(split(msg, " ")[0] >> msgSize = int(split(msg,

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Dennis Lee Bieber wrote: > On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> However, if I try to actually download the messages themselves, my >> python editor highlights 'msgSize' and says "invalid syntax" when I run >> the f