瀏覽代碼

echo the mailbox the password is for

Oswald Buddenhagen 21 年之前
父節點
當前提交
228ba6b48b
共有 1 個文件被更改,包括 4 次插入1 次删除
  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");