X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.h;h=f568bc0a2da3458fad66b6b13f03d7fadb267f24;hp=bc2caaad5c800fdca224a8288d50ff2f1dbb7ad5;hb=ce5d78296251b529838df0dbd4dc3b9a90030924;hpb=6a4992bc611881b363583b4a20fc530c770aedd8 diff --git a/notmuch.h b/notmuch.h index bc2caaad..f568bc0a 100644 --- a/notmuch.h +++ b/notmuch.h @@ -338,10 +338,21 @@ notmuch_results_destroy (notmuch_results_t *results); * modified by the caller and will only be valid for as long as the * message is valid, (which is until the query from which it derived * is destroyed). + * + * This function will not return NULL since Notmuch ensures that every + * message has a unique message ID, (Notmuch will generate an ID for a + * message if the original file does not contain one). */ const char * notmuch_message_get_message_id (notmuch_message_t *message); +/* Get this filename for the email corresponding to 'message'. + * + * The returned filename is relative to the base of the database from + * which 'message' was obtained. See notmuch_database_get_path() .*/ +const char * +notmuch_message_get_filename (notmuch_message_t *message); + /* Get the tags for 'message', returning a notmuch_tags_t object which * can be used to iterate over all tags. *