]> git.notmuchmail.org Git - notmuch/commit
new: Synchronize maildir flags eagerly.
authorAustin Clements <amdragon@mit.edu>
Fri, 28 Jan 2011 01:51:04 +0000 (20:51 -0500)
committerDavid Bremner <bremner@debian.org>
Sat, 24 Sep 2011 23:00:28 +0000 (20:00 -0300)
commit8305f0aac7f31aeddd54d0af683475ab1492e2b7
tree12b2471f8e1eb5c01c1d79666c345ae9a8bb41df
parent191c4ae693c35ecd9e905e64c7619734171c4a8a
new: Synchronize maildir flags eagerly.

Because flag synchronization is stateless, it can be performed at any
time as long as it's guaranteed to be performed after any change to a
message's filename list.  Take advantage of this to synchronize tags
immediately after a filename is added or removed.

This does not yet make adding or removing a message atomic, but it is
a big step toward atomicity because it reduces the window where the
database tags are inconsistent from nearly the entire notmuch-new to
just around when the message is added or removed.
notmuch-new.c