diff options
author | Carl Worth <cworth@cworth.org> | 2009-12-21 08:23:26 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-01-06 10:32:05 -0800 |
commit | 6ca6c089e9df7affe6bee0392197509a24ab2546 (patch) | |
tree | 69eaca4254d5548d19da8ed989230d91a9088a9f /lib/notmuch-private.h | |
parent | 84742d86ab2fd3e5b5b601f073351454b993575e (diff) |
database: Store mail filename as a new 'direntry' term, not as 'data'.
Instead of storing the complete message filename in the data portion
of a mail document we now store a 'direntry' term that contains the
document ID of a directory document and also the basename of the
message filename within that directory. This will allow us to easily
store multple filenames for a single message, and will also allow us
to find mail documents for files that previously existed in a
directory but that have since been deleted.
Diffstat (limited to 'lib/notmuch-private.h')
-rw-r--r-- | lib/notmuch-private.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 9f470c9..5a930bb 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -166,6 +166,11 @@ _notmuch_database_find_directory_id (notmuch_database_t *database, const char *path, unsigned int *directory_id); +const char * +_notmuch_database_get_directory_path (void *ctx, + notmuch_database_t *notmuch, + unsigned int doc_id); + /* thread.cc */ notmuch_thread_t * @@ -205,7 +210,7 @@ _notmuch_message_gen_terms (notmuch_message_t *message, const char *prefix_name, const char *text); -void +notmuch_status_t _notmuch_message_set_filename (notmuch_message_t *message, const char *filename); |