With the mailbox object created, we then login with login user.
Mailbox.user(user)Note that method user is used to specify a username for logging into the server. If the username is left off, the default is to use the name associated with the calling process or user - whether the local user or a suid user. Therefore, you should fail softly here (even though here we don't for the sake of brevity). For tips on managing exceptions and errors, see Python's built-in exceptions and warnings. For help on how to use them, see "Exceptions, Errors, and Warnings."
Before we can initiate the login process, however, we need to get the password.
