diff options
author | Carl Worth <cworth@cworth.org> | 2009-12-21 12:08:46 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-01-06 10:32:05 -0800 |
commit | 1376a90db622b71e0997fca52c50ccf34faeed22 (patch) | |
tree | 7856e32d496e361e74a7d01ca03899ba0f42815e /lib/message.cc | |
parent | 6ca6c089e9df7affe6bee0392197509a24ab2546 (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/message.cc')
-rw-r--r-- | lib/message.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/message.cc b/lib/message.cc index 3f533423..7d586903 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -385,15 +385,12 @@ notmuch_message_get_replies (notmuch_message_t *message) return _notmuch_messages_create (message->replies); } -/* Set the filename for 'message' to 'filename'. - * - * XXX: We should still figure out if we think it's important to store - * multiple filenames for email messages with identical message IDs. +/* Add an additional 'filename' for 'message'. * * This change will not be reflected in the database until the next * call to _notmuch_message_set_sync. */ notmuch_status_t -_notmuch_message_set_filename (notmuch_message_t *message, +_notmuch_message_add_filename (notmuch_message_t *message, const char *filename) { const char *relative, *directory, *basename; |