]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch.h
message: add flags to notmuch_message_t
[notmuch] / lib / notmuch.h
index 9fa2770116f1041b4067bd2646a6b16d330f6910..293a859bc3bc83e41671d3498fd8186096fb3a2b 100644 (file)
@@ -709,6 +709,20 @@ notmuch_message_get_replies (notmuch_message_t *message);
 const char *
 notmuch_message_get_filename (notmuch_message_t *message);
 
+/* Message flags */
+typedef enum _notmuch_message_flag {
+} notmuch_message_flag_t;
+
+/* Get a value of a flag for the email corresponding to 'message'. */
+notmuch_bool_t
+notmuch_message_get_flag (notmuch_message_t *message,
+                         notmuch_message_flag_t flag);
+
+/* Set a value of a flag for the email corresponding to 'message'. */
+void
+notmuch_message_set_flag (notmuch_message_t *message,
+                         notmuch_message_flag_t flag, notmuch_bool_t value);
+
 /* Get the date of 'message' as a time_t value.
  *
  * For the original textual representation of the Date header from the