]> granicus.if.org Git - neomutt/commit
fix read-only mbox
authorRichard Russon <rich@flatcap.org>
Wed, 2 Oct 2019 22:58:39 +0000 (23:58 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 16 Oct 2019 12:21:41 +0000 (13:21 +0100)
commit7abdfe2ff2af36afc99d02dc0980d52e976af966
tree1f109c51ed3f0a8f24cc6442418af75bc611bdea
parent22b53468f88de05ae0641ec1fc30b08a89bfaedf
fix read-only mbox

If an mbox Mailbox doesn't have write privs, try opening it read-only.

Before the architectural changes, there could be multiple open Mailbox
objects representing a single folder.

By default a folder would be given a read-only Mailbox.  When the folder
needed to be written to, another Mailbox would be opened read-write.
This lead to synchronisation problems between the two Mailboxes.

Co-authored-by: Pietro Cerutti <gahr@gahr.ch>
mbox/mbox.c