Fix notmuch_message_tags_to_maildir_flags to effect rename immediately
authorCarl Worth <cworth@cworth.org>
Thu, 11 Nov 2010 08:26:04 +0000 (00:26 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 11 Nov 2010 11:40:19 +0000 (03:40 -0800)
commit81cbaafc0f64dcc77933d06e0d2b22ee38eefd88
tree18296e808f9d09360444d9338d9679e8c196276b
parent4b6063397ffcc13f38757e7052e3dc6649d9703c
Fix notmuch_message_tags_to_maildir_flags to effect rename immediately

We have tests to ensure that when the notmuch library renames a file
that that rename takes place immediately in the database, (without
requiring something like "notmuch new" to notice the change).

This was working when the code was first added, but recently broke in
the reworking of the maildir-synchronization interface since the
tags_to_maildir_flags function can no longer assume that it is being
called as part of _notmuch_message_sync.

Fortunately, the fix is as simple as adding an explicit call to
_notmuch_message_sync.
lib/message.cc