[PATCH 0/5] lib: make folder: prefix literal

Mark Walters markwalters1009 at gmail.com
Thu Jan 30 13:15:40 PST 2014


Dear Jani

> That is the unicorn... many of the query improvements I have in mind
> depend on a custom query parser. So I'd like to have that. And a
> pony. But in the mean time, I'm left wondering whether I should pursue
> folder: as a boolean prefix, or try to figure out if there are
> improvements to be made as a probabilistic prefix, or just put this work
> on hold. With the db upgrade and upgrade tests, it's not exactly a
> trivial amount of work.

I think a boolean prefix sounds good. As you say there are lots of
things we could do with a custom parser but I don't think its worth
delaying things like this for it.

I also think it's not worth aiming for something perfect, just "good
enough". In a bike-shedding spirit I like the suggestion above (and on
irc) of a path: prefix which is basically literal. Either ^ or a
starting / to root the folder and a terminal $ or / to fix the end.

(I don't have a preference between these:  / avoids a clash with folder
name with a $ or ^ in them but $ ^ are more familiar.)

Best wishes

Mark




More information about the notmuch mailing list