#3934: mutt erroneously reports "<mailbox file> is not a mailbox." when no read permission ----------------------+---------------------- Reporter: muttrac | Owner: mutt-dev Type: defect | Status: new Priority: minor | Milestone: Component: mutt | Version: 1.8.2 Resolution: | Keywords: ----------------------+----------------------
Comment (by muttrac): Here's a minimal diff that corrects this issue: {{{ *** mutt-1.8.2-orig/mx.c Tue Apr 18 19:05:29 2017 --- mutt-1.8.2/mx.c Tue Apr 25 15:17:26 2017 *************** *** 601,610 **** if (ctx->magic <= 0 || !ctx->mx_ops) { ! if (ctx->magic == 0 || !ctx->mx_ops) ! mutt_error (_("%s is not a mailbox."), path); ! else if (ctx->magic == -1) mutt_perror(path); mx_fastclose_mailbox (ctx); if (!pctx) --- 601,610 ---- if (ctx->magic <= 0 || !ctx->mx_ops) { ! if (ctx->magic == -1) mutt_perror(path); + else if (ctx->magic == 0 || !ctx->mx_ops) + mutt_error (_("%s is not a mailbox."), path); mx_fastclose_mailbox (ctx); if (!pctx) }}} -- Ticket URL: <https://dev.mutt.org/trac/ticket/3934#comment:2> Mutt <http://www.mutt.org/> The Mutt mail user agent