X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=0ef59ea9e40564a15dee60636cfa82af9a78131e;hb=154bf7ac677c41168c5c6a982fee3f22350adfef;hp=7efd3b4ae3c1dea17833de6e1dba9f8cc9cbf536;hpb=50ae83a17feb1fc2f48fb8e51ef73da08ae4e2f2;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 7efd3b4a..0ef59ea9 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -75,6 +75,9 @@ typedef struct { * user in searching. But the database doesn't really care itself * about any of these. * + * Finally, the data portion of a mail document contains the path name + * of the mail message (relative to the database path). + * * Directory document * ------------------ * A directory document is used by a client of the notmuch library to @@ -83,7 +86,7 @@ typedef struct { * * The directory document is indexed with a single prefixed term: * - * directory: The directory path (an absolute path) + * directory: The directory path (relative to the database path) * * and has a single value: * @@ -636,6 +639,8 @@ notmuch_database_set_directory_mtime (notmuch_database_t *notmuch, return NOTMUCH_STATUS_READONLY_DATABASE; } + path = _notmuch_database_relative_path (notmuch, path); + db = static_cast (notmuch->xapian_db); db_path = directory_db_path (path);