]> granicus.if.org Git - neomutt/commit
Create mx_ops.sync operation. Refactor compress to use the mx_ops.sync.
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)
commit1c7e0b44faa633d7a8a3389cbdb1fccc9996ea72
tree3d506dfe6056d7c085402c2b848a1fc0862120b5
parent0f9bd93a84baeef766e24828dc4a2251a06fa4ea
Create mx_ops.sync operation.  Refactor compress to use the mx_ops.sync.

Change compress.sync_mailbox() to lock the compressed mailbox around
both the tempfile sync and compress operations.  This will prevent
changes made inbetween the two syncs from being overwritten.

Thanks to Damien Riegel for his original patch refactoring
mx_ops.sync, which this patch is partially based upon.
compress.c
compress.h
imap/imap.c
mbox.c
mh.c
mutt.h
mx.c
mx.h
pop.c
pop.h