Browse Source

echo the mailbox the password is for

Oswald Buddenhagen 21 years ago
parent
commit
228ba6b48b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/imap.c

+ 4 - 1
src/imap.c

@@ -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");