X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch.h;h=41820b596c19c1a73d341dd45c6d067199d799f9;hp=61c68d65df151f084a878da44335fe82f169bcaf;hb=d9d3d3e6f06a76dc0fbe24c9655b64acfcd4b9e4;hpb=b65a783195cb459a316370eb7a956b6029102f2e diff --git a/lib/notmuch.h b/lib/notmuch.h index 61c68d65..41820b59 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -176,6 +176,12 @@ notmuch_database_open (const char *path, void notmuch_database_close (notmuch_database_t *database); +/* Sets whether maildir flags should be synchronized with notmuch + * tags. */ +void +notmuch_database_set_maildir_sync (notmuch_database_t *database, + notmuch_bool_t maildir_sync); + /* Return the database path of the given database. * * The return value is a string owned by notmuch so should not be @@ -780,6 +786,7 @@ notmuch_message_get_filename (notmuch_message_t *message); /* Message flags */ typedef enum _notmuch_message_flag { NOTMUCH_MESSAGE_FLAG_MATCH, + NOTMUCH_MESSAGE_FLAG_TAGS_INVALID, } notmuch_message_flag_t; /* Get a value of a flag for the email corresponding to 'message'. */ @@ -896,6 +903,12 @@ notmuch_message_remove_tag (notmuch_message_t *message, const char *tag); notmuch_status_t notmuch_message_remove_all_tags (notmuch_message_t *message); +/* Add or remove tags based on the maildir flags in the file name. + */ +notmuch_status_t +notmuch_message_maildir_to_tags (notmuch_message_t *message, + const char *filename); + /* Freeze the current state of 'message' within the database. * * This means that changes to the message state, (via