"search --path=directory/" is lame(-ish)

David Bremner david at tethera.net
Fri Oct 31 00:36:52 PDT 2014


David Edmondson <dme at dme.org> writes:

>
> Could we always prune a trailing slash from the path: component of a
> query before using it?
>

As I understand it, this is complicated by the fact that we pass the
whole string to Xapian to be parsed as a query, so we don't really know
where the path: terms are. We could in principle preprocess the string
(more) but that seems to be pretty fragile, and we'd have to minimally
deal with quoting of e.g. paths with spaces in them.

d


More information about the notmuch mailing list