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
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_