]> git.cworth.org Git - notmuch/commit
lib/message-property: sync removed properties to the database
authorKevin Boulain <kevin@boula.in>
Wed, 29 Mar 2023 16:13:32 +0000 (18:13 +0200)
committerDavid Bremner <david@tethera.net>
Thu, 30 Mar 2023 11:01:09 +0000 (08:01 -0300)
commitfb55ff28a2fdaa9c218af5ca10b1cae674869edd
treef746c06e300eceb71fa3a02d9a7b20f41007a563
parent336334996750240608d5f29ed5dd8e40a69c4d79
lib/message-property: sync removed properties to the database

_notmuch_message_remove_all_properties wasn't syncing the message back
to the database but was still invalidating the metadata, giving the
impression the properties had actually been removed.

Also move the metadata invalidation to _notmuch_message_remove_terms
to be closer to what's done in _notmuch_message_modify_property and
_notmuch_message_remove_term.
lib/message-property.cc
lib/message.cc
test/T610-message-property.sh