]> granicus.if.org Git - mutt/commitdiff
clear logging in message when login succeeded. closes #3524
authorMichael Elkins <me@sigpipe.org>
Sun, 19 Jun 2011 04:07:46 +0000 (21:07 -0700)
committerMichael Elkins <me@sigpipe.org>
Sun, 19 Jun 2011 04:07:46 +0000 (21:07 -0700)
imap/auth_login.c

index 63e475202e210d323ae9dc154fd30ea2d4cd25ec..1debcdcc21e24ad91d1a2a2175d0a786ae2bc320 100644 (file)
@@ -62,7 +62,10 @@ imap_auth_res_t imap_auth_login (IMAP_DATA* idata, const char* method)
   rc = imap_exec (idata, buf, IMAP_CMD_FAIL_OK | IMAP_CMD_PASS);
   
   if (!rc)
+  {
+    mutt_clear_error(); /* clear "Logging in...".  fixes #3524 */
     return IMAP_AUTH_SUCCESS;
+  }
 
   mutt_error _("Login failed.");
   mutt_sleep (2);