* 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
*
* 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:
*
{ "type", "T" },
{ "reference", "XREFERENCE" },
{ "replyto", "XREPLYTO" },
- /* XXX: Need a flag day to rename XTIMESTAMP. */
- { "directory", "XTIMESTAMP" },
+ { "directory", "XDIRECTORY" },
};
prefix_t BOOLEAN_PREFIX_EXTERNAL[] = {
return NOTMUCH_STATUS_READONLY_DATABASE;
}
+ path = _notmuch_database_relative_path (notmuch, path);
+
db = static_cast <Xapian::WritableDatabase *> (notmuch->xapian_db);
db_path = directory_db_path (path);