From: Fabian Groffen Date: Sun, 7 Jan 2018 12:06:56 +0000 (+0100) Subject: cmd_handle_fatal: make error message a bit more descriptive X-Git-Tag: mutt-1-10-rel~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d5dce9979e0ce9fd5712024b218f5bd6df38d1a;p=mutt cmd_handle_fatal: make error message a bit more descriptive When there are multiple IMAP connections available, "Mailbox closed" doesn't give a hint as to which one. Use account info to identify which mailbox was closed. --- diff --git a/imap/command.c b/imap/command.c index 13ebdd36..c8825981 100644 --- a/imap/command.c +++ b/imap/command.c @@ -480,7 +480,8 @@ static void cmd_handle_fatal (IMAP_DATA* idata) { mx_fastclose_mailbox (idata->ctx); mutt_socket_close (idata->conn); - mutt_error (_("Mailbox closed")); + mutt_error (_("Mailbox %s@%s closed"), + idata->conn->account.login, idata->conn->account.host); mutt_sleep (1); idata->state = IMAP_DISCONNECTED; }