- status = _notmuch_database_find_directory_id (message->notmuch, directory,
- &directory_id);
- if (status)
- return status;
-
- term = talloc_asprintf (local, "%s%u:%s",
- _find_prefix ("direntry"), directory_id, basename);
-
- message->doc.add_term (term);