]> granicus.if.org Git - neomutt/commit
Move mbox close-append logic inside mbox_close_mailbox().
authorKevin McCarthy <kevin@8t8.us>
Tue, 8 Nov 2016 20:42:56 +0000 (12:42 -0800)
committerKevin McCarthy <kevin@8t8.us>
Tue, 8 Nov 2016 20:42:56 +0000 (12:42 -0800)
commit51631725e6983584d5e1f635852404ccd22b6334
tree8041495ca2d6a7214b1174239c7e06d6b967cefb
parent146d4a145b2aa3a2c39e1851e184dbea27aa6f96
Move mbox close-append logic inside mbox_close_mailbox().

The mx_fastclose_mailbox() calls mx_ops->close(), which invokes
mbox_close_mailbox().

Also, close the ctx->fp inside mbox_close_mailbox().  This way, the
(to be added) compress logic can call the mx_ops->close() instead of
"knowing" to close the fp before recompressing.

mx_fastclose_mailbox() will safe_fclose() the fp again, but I'm
leaving it there just in case I missed a usage of the fp in some other
part of the code.

Thanks to Damien Riegel for the original patch.
mbox.c
mx.c