From: Carl Worth Date: Wed, 28 Oct 2009 06:55:08 +0000 (-0700) Subject: Update prefix so that "thread:" can be used in search strings. X-Git-Tag: 0.1~675 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=5eaec1e31679d2a1a9ea3b32fb306ad67ee1a936;hp=326f73374e945d94c9a395e17bbc8229e91a12c1 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. --- 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" } };