summaryrefslogtreecommitdiff
path: root/database.cc
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-26 22:25:45 -0700
committerCarl Worth <cworth@cworth.org>2009-10-26 22:53:39 -0700
commit31db02a8c1afdb025da6e0e7e62630ffffc69eb7 (patch)
tree6d2b3ccd0aa7db1bc52ad46a35adb67c5cfe056c /database.cc
parent9c4efa8487d292268d9ae6a089b1063c6e82e6e4 (diff)
notmuch restore: Fix to remove all tags before adding tags.
This means that the restore operation will now properly pick up the removal of tags indicated by the tag just not being present in the dump file. We added a few new public functions in order to support this: notmuch_message_freeze notmuch_message_remove_all_tags notmuch_message_thaw
Diffstat (limited to 'database.cc')
-rw-r--r--database.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/database.cc b/database.cc
index ad91a7d..9831d79 100644
--- a/database.cc
+++ b/database.cc
@@ -166,6 +166,8 @@ notmuch_status_to_string (notmuch_status_t status)
return "Erroneous NULL pointer";
case NOTMUCH_STATUS_TAG_TOO_LONG:
return "Tag value is too long (exceeds NOTMUCH_TAG_MAX)";
+ case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW:
+ return "Unblanced number of calls to notmuch_message_freeze/thaw";
default:
case NOTMUCH_STATUS_LAST_STATUS:
return "Unknown error status value";