]> git.notmuchmail.org Git - notmuch/commit
Split BOOLEAN_PREFIX into INTERNAL and EXTERNAL subsets.
authorCarl Worth <cworth@cworth.org>
Sun, 25 Oct 2009 05:38:43 +0000 (22:38 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 25 Oct 2009 05:38:43 +0000 (22:38 -0700)
commit0aa355cc8fb46ae049052a913c2f2ab89ccba23c
tree0009a44a805a02eadb8504438b88a6f1ff04951a
parent2a9b4fce7ce9dc1cb89a7581bc1360fd4bfcdf99
Split BOOLEAN_PREFIX into INTERNAL and EXTERNAL subsets.

The idea here is that only some of the prefix names (such as "id" and
"tag") actually make sense in external user-supplied query
strings. Other things like "type" are internal implementation details
of how we store things in the database. So internal machinery will add
those terms to the database and we don't need to support them in the
string itself.

With this, we can now simply loop over the external prefix values to
let the quiery parser know about them. So as we add prefixes in the
future, we'll only need to add them to this list.
database.cc