aboutsummaryrefslogtreecommitdiffhomepage
path: root/database.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-27 23:55:08 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-27 23:55:08 -0700
commit5eaec1e31679d2a1a9ea3b32fb306ad67ee1a936 (patch)
tree88d8ccc29d5d1e14f1739ace00d668fea8ba1db4 /database.cc
parent326f73374e945d94c9a395e17bbc8229e91a12c1 (diff)
Update prefix so that "thread:" can be used in search strings.
It's convenient to be able to do things like: notmuch tag -inbox thread:<thread-id> (even though this can run into a race condition as noted in TODO--the fix for the race is simply to not run "notmuch new" between reading a thread with the (not yet existent) "notmuch show" and removing its inbox tag with a command like the above). So we now allow such a thing.
Diffstat (limited to 'database.cc')
-rw-r--r--database.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/database.cc b/database.cc
index 0fd0bdad..5555b0e3 100644
--- a/database.cc
+++ b/database.cc
@@ -104,12 +104,12 @@ typedef struct {
prefix_t BOOLEAN_PREFIX_INTERNAL[] = {
{ "type", "T" },
- { "thread", "G" },
{ "ref", "XREFERENCE" },
{ "timestamp", "XTIMESTAMP" },
};
prefix_t BOOLEAN_PREFIX_EXTERNAL[] = {
+ { "thread", "G" },
{ "tag", "K" },
{ "id", "Q" }
};