-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request for password never mentions the password #558
Comments
Run offlineimap with the |
I know what account is failing. The issue is that the username used is never displayed. If there is an issue on the parsing of the config file (which was my problem) and the username is not show, it's not possible for a user to find the issue. So I'm suggesting that instead of:
Something like this should be show:
I tried to do this, but the getpass method is not being passed the username. I'm also unsure if there's cases where there's not really an username? |
The getpass() signature shall be changed, yes. Notice that a wrong parsing of the configuration file might still lead to undefined behaviour, though. |
…fflineIMAP#558) When asking for a password interactively, the username is never displayed which may hide problems (typos on the configuration, or issues on offlineimap parsing of the config file). The hostname, port, and account name are already displayed when establishing the connection. When asking for password, the account name is displayed again. Change it to display the username.
When asking for a password interactively, the username is never displayed which may hide problems (typos on the configuration, or issues on offlineimap parsing of the config file). The hostname, port, and account name are already displayed when establishing the connection. When asking for password, the account name is displayed again. Change it to display the username. Github-ref: #558 Signed-off-by: David Miguel Susano Pinto <carandraug+dev@gmail.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
If the username value is not provided on the configuration file, then username if of NoneType and NULL.join will bomb since Nones can't be joined with strings. So check if username is empty and raise an exception if so. Github-ref: #558 Signed-off-by: David Miguel Susano Pinto <carandraug+dev@gmail.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
The fix will be in the release after v7.2.1. Thanks! |
When logging by typing password manually, the interface is:
but it never actually shows the username. If there is any issue on the username, the following is is displayed which again never shows the username
Because the username is never shown on the output, if the issue is on the username debugging is a lot harder (see issue #557 for what caused the issue to me, I had to go and modify the sources to find out what was being used).
Related issue
offlineimap.imapserver.IMAPserver.__plainhandler
should probably check ifauthc
isNone
. I tried to raise aOfflineImapError
and while the exception message got printed, it continued on and asked for the password anyway.The text was updated successfully, but these errors were encountered: