X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=5577aaf9f48ce5974d692721735122c7ff6ba5d3;hb=aa1e8352de30a8dc272552ee65c7272166f39695;hp=57a98c94204f5db2e2714b2568d2424ccb66264c;hpb=293186d6c6b1c4d158413de5412e6b4345e94970;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 57a98c94..5577aaf9 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -260,10 +260,10 @@ static prefix_t BOOLEAN_PREFIX_EXTERNAL[] = { { "id", "Q" }, { "path", "P" }, /* - * Without the ":", since this is a multi-letter prefix, Xapian - * will add a colon itself if the first letter of the path is - * upper-case ASCII. Including the ":" forces there to always be a - * colon, which keeps our own logic simpler. + * Unconditionally add ':' to reduce potential ambiguity with + * overlapping prefixes and/or terms that start with capital + * letters. See Xapian document termprefixes.html for related + * discussion. */ { "folder", "XFOLDER:" }, };