#3934: mutt erroneously reports "<mailbox file> is not a mailbox." when no read
permission
----------------------+----------------------
  Reporter:  muttrac  |      Owner:  mutt-dev
      Type:  defect   |     Status:  closed
  Priority:  minor    |  Milestone:
 Component:  mutt     |    Version:  1.8.2
Resolution:  fixed    |   Keywords:
----------------------+----------------------
Changes (by Roger Cornelius <rac@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9a0afe7815d19221ef2957b65c060a1369e64f2b"
 7020:9a0afe7815d1]:
 {{{
 #!CommitTicketReference repository=""
 revision="9a0afe7815d19221ef2957b65c060a1369e64f2b"
 Fix error message when opening a mailbox with no read permission. (closes
 #3934)

 ctx->mx_ops ends up being NULL for both the case that ctx->magic is 0
 and -1.  This meant the mutt_perror() error message was never being
 printed, because the check for ctx->mx_ops == NULL was taking place
 first.

 Move the "ctx->magic == -1" check first, so mutt will print out an
 appropriate perror message in that case.
 }}}

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3934#comment:6>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to