From 5eaec1e31679d2a1a9ea3b32fb306ad67ee1a936 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 27 Oct 2009 23:55:08 -0700 Subject: [PATCH] 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: (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. --- database.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } };