pop3 mail download - using python.org example

Alex Martelli aleaxit at yahoo.com
Sun Mar 19 02:53:15 CET 2006


Kevin F <neurogasm at gmail.com> 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 want a raw input function that prompts,
instead of that call rawinput('User: ') ...


Alex



More information about the Python-list mailing list