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: neomutt-20180223~45^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5da97022bed8a263773b7e42afc00d93db9bfc5b;p=neomutt 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 df9d9ac94..03548090e 100644 --- a/imap/command.c +++ b/imap/command.c @@ -168,7 +168,8 @@ static void cmd_handle_fatal(struct ImapData *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; }