From: Carl Worth Date: Sun, 25 Oct 2009 05:23:58 +0000 (-0700) Subject: Add the magic to allow searches such as "tag:inbox". X-Git-Tag: 0.1~726 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=aa46a683a85af0d0234720bd93ae3d09bc360910;hp=aa46a683a85af0d0234720bd93ae3d09bc360910 Add the magic to allow searches such as "tag:inbox". The key for this is call add_boolean_prefix on the QueryParser object. That tells the query parser to take something like "tag:inbox" and transform it into the "Linbox" term and do what it needs to do to make this term a requirement of the search. We're starting to have a real system here. Also, I didn't want to expose the ugly name of "msgid" to the user, so we add a prefix name of simply "id" instead. ---