aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-21 12:08:46 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-01-06 10:32:05 -0800
commit1376a90db622b71e0997fca52c50ccf34faeed22 (patch)
tree7856e32d496e361e74a7d01ca03899ba0f42815e /lib/notmuch.h
parent6ca6c089e9df7affe6bee0392197509a24ab2546 (diff)
database: Allowing storing multiple filenames for a single message ID.
The library interface is unchanged so far, (still just notmuch_database_add_message), but internally, the old _set_filename function is now _add_filename instead.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 786b8e9f..e96474f6 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -698,14 +698,20 @@ notmuch_message_get_thread_id (notmuch_message_t *message);
notmuch_messages_t *
notmuch_message_get_replies (notmuch_message_t *message);
-/* Get the filename for the email corresponding to 'message'.
+/* Get a filename for the email corresponding to 'message'.
*
* The returned filename is an absolute filename, (the initial
* component will match notmuch_database_get_path() ).
*
* The returned string belongs to the message so should not be
* modified or freed by the caller (nor should it be referenced after
- * the message is destroyed). */
+ * the message is destroyed).
+ *
+ * Note: If this message corresponds to multiple files in the mail
+ * store, (that is, multiple files contain identical message IDs),
+ * this function will arbitrarily return a single one of those
+ * filenames.
+ */
const char *
notmuch_message_get_filename (notmuch_message_t *message);