X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=3974820c0d3573305f8b5a168e8a414fd357bdfa;hb=0f39d2c4deef6f774e63d78a226857039d0cd978;hp=8bba442f62b3505a8c68d7b6a03a388daca44a7c;hpb=94eb9aacd40a8aa133f64bbe5ed71c0138fb5ed9;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index 8bba442f..3974820c 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -684,6 +684,21 @@ 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_MSG_FLAG_MATCHING_SEARCH, +} 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