aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2016-07-08 11:15:36 +0200
committerDavid Bremner <david@tethera.net>2016-09-21 18:14:25 -0300
commit693ca8d8a80438ce1e361e7e6d22288f52a11c55 (patch)
tree447bce9c213a5662f86af02c91cfd3f827dad4f8 /doc
parent651da30c0941081cf730930fc1a7cac34954ca0e (diff)
add property: query prefix to search for specific properties
We want to be able to query the properties directly, like: notmuch count property:foo=bar which should return a count of messages where the property with key "foo" has value equal to "bar".
Diffstat (limited to 'doc')
-rw-r--r--doc/man7/notmuch-search-terms.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/man7/notmuch-search-terms.rst b/doc/man7/notmuch-search-terms.rst
index 075f88c8..de93d733 100644
--- a/doc/man7/notmuch-search-terms.rst
+++ b/doc/man7/notmuch-search-terms.rst
@@ -58,6 +58,8 @@ indicate user-supplied values):
- query:<name>
+- property:<key>=<value>
+
The **from:** prefix is used to match the name or address of the sender
of an email message.
@@ -139,6 +141,11 @@ queries added with **notmuch-config(1)**. Named queries are only
available if notmuch is built with **Xapian Field Processors** (see
below).
+The **property:** prefix searches for messages with a particular
+<key>=<value> property pair. Properties are used internally by notmuch
+(and extensions) to add metadata to messages. A given key can be
+present on a given message with several different values.
+
Operators
---------
@@ -217,7 +224,7 @@ exact matches like "tag:inbox" or **probabilistic**, supporting a more flexible
Boolean
- **tag:**, **id:**, **thread:**, **folder:**, **path:**
+ **tag:**, **id:**, **thread:**, **folder:**, **path:**, **property:**
Probabilistic
**from:**, **to:**, **subject:**, **attachment:**, **mimetype:**