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.
This commit is contained in:
Carl Worth 2009-10-27 23:55:08 -07:00
parent 326f73374e
commit 5eaec1e316

View file

@ -104,12 +104,12 @@ typedef struct {
prefix_t BOOLEAN_PREFIX_INTERNAL[] = { prefix_t BOOLEAN_PREFIX_INTERNAL[] = {
{ "type", "T" }, { "type", "T" },
{ "thread", "G" },
{ "ref", "XREFERENCE" }, { "ref", "XREFERENCE" },
{ "timestamp", "XTIMESTAMP" }, { "timestamp", "XTIMESTAMP" },
}; };
prefix_t BOOLEAN_PREFIX_EXTERNAL[] = { prefix_t BOOLEAN_PREFIX_EXTERNAL[] = {
{ "thread", "G" },
{ "tag", "K" }, { "tag", "K" },
{ "id", "Q" } { "id", "Q" }
}; };