From 5d5dce9979e0ce9fd5712024b218f5bd6df38d1a Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 7 Jan 2018 13:06:56 +0100 Subject: [PATCH] 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. --- imap/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.50.1