]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.h
Add notmuch_message_get_filename
[notmuch] / notmuch.h
index bc2caaad5c800fdca224a8288d50ff2f1dbb7ad5..57ff8c8f3003fd63298ca7acd9464399ffe9262b 100644 (file)
--- a/notmuch.h
+++ b/notmuch.h
@@ -342,6 +342,13 @@ notmuch_results_destroy (notmuch_results_t *results);
 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.
  *