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

pop3 mail download - using python.org example

2006-03-18 Thread Kevin F
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? ##from http://docs.python.org/lib/pop3-example.html import getpass, poplib M = poplib.POP3('localhost') M.user(getpass.getuser()) M.pass_