aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-21 15:14:32 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-01-06 10:32:06 -0800
commitf11aaa3678ab9d02d4ea98db1164772ed637404b (patch)
treecacb126e04b9123dd38795f1862b3a9884672db5 /lib/notmuch.h
parent44a74912c78526c1942a101a8172206a32885425 (diff)
database: Add new, public notmuch_database_remove_message
This will allow applications to support the removal of messages, (such as when a file is deleted from the mail store). No removal support is provided yet in commands such as "notmuch new".
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index e96474f6..2e598656 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -267,6 +267,19 @@ notmuch_database_add_message (notmuch_database_t *database,
const char *filename,
notmuch_message_t **message);
+/* Remove a message from the given notmuch database.
+ *
+ * Note that the only this particular filename association is removed
+ * from the database. If the same message (as determined by the
+ * message ID) is still available via other filenames, then the
+ * message will persist in the database for those filenames. When the
+ * last filename is removed for a particular message, the database
+ * content for that message will be entirely removed.
+ */
+notmuch_status_t
+notmuch_database_remove_message (notmuch_database_t *database,
+ const char *filename);
+
/* Find a message with the given message_id.
*
* If the database contains a message with the given message_id, then