doc: add notmuch-properties(7)

We will want a user-facing place to record details about the use of
notmuch properties shortly.  This establishes a new manual page for
that purpose.
This commit is contained in:
Daniel Kahn Gillmor 2017-10-20 22:25:39 -04:00 committed by David Bremner
parent 20ff9de24d
commit 6575b7eb31
7 changed files with 68 additions and 4 deletions

View file

@ -99,6 +99,10 @@ man_pages = [
u'incorporate new mail into the notmuch database', u'incorporate new mail into the notmuch database',
[notmuch_authors], 1), [notmuch_authors], 1),
('man7/notmuch-properties', 'notmuch-properties',
u'notmuch message property conventions and documentation',
[notmuch_authors], 7),
('man1/notmuch-reindex', 'notmuch-reindex', ('man1/notmuch-reindex', 'notmuch-reindex',
u're-index matching messages', u're-index matching messages',
[notmuch_authors], 1), [notmuch_authors], 1),

View file

@ -18,6 +18,7 @@ Contents:
man5/notmuch-hooks man5/notmuch-hooks
man1/notmuch-insert man1/notmuch-insert
man1/notmuch-new man1/notmuch-new
man7/notmuch-properties
man1/notmuch-reindex man1/notmuch-reindex
man1/notmuch-reply man1/notmuch-reply
man1/notmuch-restore man1/notmuch-restore

View file

@ -85,8 +85,8 @@ Supported options for **dump** include
Output per-message (key,value) metadata. Each line starts Output per-message (key,value) metadata. Each line starts
with "#= ", followed by a message id, and a space separated with "#= ", followed by a message id, and a space separated
list of key=value pairs. Ids, keys and values are hex list of key=value pairs. Ids, keys and values are hex encoded
encoded if needed. if needed. See **notmuch-properties(7)** for more details.
**tags** **tags**
@ -116,6 +116,7 @@ SEE ALSO
**notmuch-hooks(5)**, **notmuch-hooks(5)**,
**notmuch-insert(1)**, **notmuch-insert(1)**,
**notmuch-new(1)**, **notmuch-new(1)**,
**notmuch-properties(7)**,
**notmuch-reply(1)**, **notmuch-reply(1)**,
**notmuch-restore(1)**, **notmuch-restore(1)**,
**notmuch-search(1)**, **notmuch-search(1)**,

View file

@ -65,7 +65,8 @@ Supported options for **restore** include
Restore per-message (key,value) metadata. Each line starts Restore per-message (key,value) metadata. Each line starts
with "#= ", followed by a message id, and a space separated with "#= ", followed by a message id, and a space separated
list of key=value pairs. Ids, keys and values are hex list of key=value pairs. Ids, keys and values are hex
encoded if needed. encoded if needed. See **notmuch-properties(7)** for more
details.
**tags** **tags**
@ -96,6 +97,7 @@ SEE ALSO
**notmuch-hooks(5)**, **notmuch-hooks(5)**,
**notmuch-insert(1)**, **notmuch-insert(1)**,
**notmuch-new(1)**, **notmuch-new(1)**,
**notmuch-properties(7)**,
**notmuch-reply(1)**, **notmuch-reply(1)**,
**notmuch-search(1)**, **notmuch-search(1)**,
**notmuch-search-terms(7)**, **notmuch-search-terms(7)**,

View file

@ -169,6 +169,7 @@ SEE ALSO
**notmuch-hooks(5)**, **notmuch-hooks(5)**,
**notmuch-insert(1)**, **notmuch-insert(1)**,
**notmuch-new(1)**, **notmuch-new(1)**,
**notmuch-properties(7)**,
**notmuch-reindex(1)**, **notmuch-reindex(1)**,
**notmuch-reply(1)**, **notmuch-reply(1)**,
**notmuch-restore(1)**, **notmuch-restore(1)**,

View file

@ -0,0 +1,53 @@
==================
notmuch-properties
==================
SYNOPSIS
========
**notmuch** **count** **property:**\ <*key*>=<*value*>
**notmuch** **search** **property:**\ <*key*>=<*value*>
**notmuch** **show** **property:**\ <*key*>=<*value*>
**notmuch** **reindex** **property:**\ <*key*>=<*value*>
**notmuch** **tag** +<*tag*> **property:**\ <*key*>=<*value*>
**notmuch** **dump** **--include=properties**
**notmuch** **restore** **--include=properties**
DESCRIPTION
===========
Several notmuch commands can search for, modify, add or remove
properties associated with specific messages. Properties are
key/value pairs, and a message can have more than one key/value pair
for the same key.
While users can select based on a specific property in their search
terms with the prefix **property:**, the notmuch command-line
interface does not provide mechanisms for modifying properties
directly to the user.
Instead, message properties are expected to be set and used
programmatically, according to logic in notmuch itself, or in
extensions to it.
Extensions to notmuch which make use of properties are encouraged to
report the specific properties used to the upstream notmuch project,
as a way of avoiding collisions in the property namespace.
SEE ALSO
========
**notmuch(1)**,
**notmuch-dump(1)**,
**notmuch-insert(1)**,
**notmuch-new(1)**,
**notmuch-reindex(1)**,
**notmuch-restore(1)**,
***notmuch-search-terms(7)**

View file

@ -159,7 +159,8 @@ below).
The **property:** prefix searches for messages with a particular The **property:** prefix searches for messages with a particular
<key>=<value> property pair. Properties are used internally by notmuch <key>=<value> property pair. Properties are used internally by notmuch
(and extensions) to add metadata to messages. A given key can be (and extensions) to add metadata to messages. A given key can be
present on a given message with several different values. present on a given message with several different values. See
**notmuch-properties(7)** for more details.
Operators Operators
--------- ---------
@ -429,6 +430,7 @@ SEE ALSO
**notmuch-insert(1)**, **notmuch-insert(1)**,
**notmuch-new(1)**, **notmuch-new(1)**,
**notmuch-reindex(1)**, **notmuch-reindex(1)**,
**notmuch-properties(1)**,
***notmuch-reply(1)**, ***notmuch-reply(1)**,
**notmuch-restore(1)**, **notmuch-restore(1)**,
**notmuch-search(1)**, **notmuch-search(1)**,