echo the mailbox the password is for

This commit is contained in:
Oswald Buddenhagen 2003-12-02 02:53:14 +00:00
parent 4fba9c8b74
commit 228ba6b48b

View File

@ -793,7 +793,10 @@ imap_connect (config_t * cfg)
*/
if (!global.pass)
{
global.pass = getpass ("Password:");
char prompt[80];
sprintf(prompt, "Password (mailbox %s@%s/%s):",
cfg->user, cfg->host, cfg->box);
global.pass = getpass (prompt);
if (!global.pass)
{
perror ("getpass");