X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=e8e0cc12a62b9970cb19ed160bd5b04b967599ce;hb=6499fce3911df2646db67c0f1ff65672324904f0;hp=e025bc1fb455a6f4fe2c53ea60908a4e5d489a71;hpb=eb232ee0aba8f031fe4f0cb509682a321d85e06e;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index e025bc1f..e8e0cc12 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -562,9 +562,10 @@ notmuch_database_get_directory (notmuch_database_t *database, * terms from the identified file to the existing message's index, and * adds 'filename' to the list of filenames known for the message. * - * 'indexopts' can be NULL (meaning, use the indexing defaults from - * the database), or can be an explicit choice of indexing options - * that should govern the indexing of this specific 'filename'. + * The 'indexopts' parameter can be NULL (meaning, use the indexing + * defaults from the database), or can be an explicit choice of + * indexing options that should govern the indexing of this specific + * 'filename'. * * If 'message' is not NULL, then, on successful return * (NOTMUCH_STATUS_SUCCESS or NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID) '*message' @@ -1612,6 +1613,14 @@ notmuch_message_remove_all_tags (notmuch_message_t *message); notmuch_status_t notmuch_message_maildir_flags_to_tags (notmuch_message_t *message); +/** + * return TRUE if any filename of 'message' has maildir flag 'flag', + * FALSE otherwise. + * + */ +notmuch_bool_t +notmuch_message_has_maildir_flag (notmuch_message_t *message, char flag); + /** * Rename message filename(s) to encode tags as maildir flags. * @@ -1847,7 +1856,7 @@ notmuch_message_get_properties (notmuch_message_t *message, const char *key, not * says. Whereas when this function returns FALSE, calling any of * these functions results in undefined behaviour. * - * See the documentation of notmuch_message_properties_get for example + * See the documentation of notmuch_message_get_properties for example * code showing how to iterate over a notmuch_message_properties_t * object. *