]> granicus.if.org Git - mutt/commit
Compress: fix check_mailbox and sync_mailbox.
authorKevin McCarthy <kevin@8t8.us>
Mon, 14 Nov 2016 04:02:35 +0000 (20:02 -0800)
committerKevin McCarthy <kevin@8t8.us>
Mon, 14 Nov 2016 04:02:35 +0000 (20:02 -0800)
commitdf33e1f12ebeca196a7c88989df6205a78c3a624
treee3dfbefeb516fc406829e2164e766c89fcb6b94f
parentd3705ea8b23de24a63a4b659ead18a0cf6fb756a
Compress: fix check_mailbox and sync_mailbox.

Change check_mailbox to delegate to the child_ops->check_mailbox if
the compressed mailbox has changed.  This allows the mailbox to
properly recover if both the decompressed mailbox and compressed file
have changed.

Change sync_mailbox to call check_mailbox before attempting to sync.
This will prevent overwriting external changes to the compressed
mailbox.
compress.c