diff options
| author | Michal Sojka <sojkam1@fel.cvut.cz> | 2014-11-05 01:25:55 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2014-11-05 23:19:12 +0100 |
| commit | 5c27136e64dab2f90995de0bfa37c54186a2fae1 (patch) | |
| tree | ef2c628927a1498a5a7c0954985edc4fcaf5ad31 /doc | |
| parent | 4387112de00d27e6957ca2b6a268242f0bb5c756 (diff) | |
cli: Introduce "notmuch address" command
This moves address-related functionality from search command to the
new address command. The implementation shares almost all code and
some command line options.
Options --offset and --limit were intentionally not included in the
address command, because they refer to messages numbers, which users
do not see in the output. This could confuse users because, for
example, they could see more addresses in the output that what was
specified with --limit. This functionality can be correctly
reimplemented for address subcommand later.
Also useless values of --exclude flag were not included in the address
command.
This was inspired by a patch from Jani Nikula.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/man1/notmuch-address.rst | 89 | ||||
| -rw-r--r-- | doc/man1/notmuch-search.rst | 20 | ||||
| -rw-r--r-- | doc/man1/notmuch.rst | 7 |
3 files changed, 95 insertions, 21 deletions
diff --git a/doc/man1/notmuch-address.rst b/doc/man1/notmuch-address.rst new file mode 100644 index 00000000..d3492373 --- /dev/null +++ b/doc/man1/notmuch-address.rst @@ -0,0 +1,89 @@ +=============== +notmuch-address +=============== + +SYNOPSIS +======== + +**notmuch** **address** [*option* ...] <*search-term*> ... + +DESCRIPTION +=========== + +Search for messages matching the given search terms, and display the +addresses from them. + +See **notmuch-search-terms(7)** for details of the supported syntax for +<search-terms>. + +Supported options for **address** include + + ``--format=``\ (**json**\ \|\ **sexp**\ \|\ **text**\ \|\ **text0**) + Presents the results in either JSON, S-Expressions, newline + character separated plain-text (default), or null character + separated plain-text (compatible with **xargs(1)** -0 option + where available). + + ``--format-version=N`` + Use the specified structured output format version. This is + intended for programs that invoke **notmuch(1)** internally. If + omitted, the latest supported version will be used. + + ``--output=(sender|recipients)`` + + Controls which information appears in the output. This option + can be given multiple times to combine different outputs. + Omitting this option is equivalent to + --output=sender --output=recipients. + + **sender** + Output all addresses from the *From* header. + + Note: Searching for **sender** should be much faster than + searching for **recipients**, because sender addresses are + cached directly in the database whereas other addresses + need to be fetched from message files. + + **recipients** + Output all addresses from the *To*, *Cc* and *Bcc* + headers. + + ``--sort=``\ (**newest-first**\ \|\ **oldest-first**) + This option can be used to present results in either + chronological order (**oldest-first**) or reverse chronological + order (**newest-first**). + + By default, results will be displayed in reverse chronological + order, (that is, the newest results will be displayed first). + + ``--exclude=(true|false)`` + A message is called "excluded" if it matches at least one tag in + search.tag\_exclude that does not appear explicitly in the + search terms. This option specifies whether to omit excluded + messages in the search process. + + The default value, **true**, prevents excluded messages from + matching the search terms. + + **false** allows excluded messages to match search terms and + appear in displayed results. + +EXIT STATUS +=========== + +This command supports the following special exit status codes + +``20`` + The requested format version is too old. + +``21`` + The requested format version is too new. + +SEE ALSO +======== + +**notmuch(1)**, **notmuch-config(1)**, **notmuch-count(1)**, +**notmuch-dump(1)**, **notmuch-hooks(5)**, **notmuch-insert(1)**, +**notmuch-new(1)**, **notmuch-reply(1)**, **notmuch-restore(1)**, +**notmuch-search-terms(7)**, **notmuch-show(1)**, **notmuch-tag(1)**, +***notmuch-search(1)** diff --git a/doc/man1/notmuch-search.rst b/doc/man1/notmuch-search.rst index 8110086e..65df2887 100644 --- a/doc/man1/notmuch-search.rst +++ b/doc/man1/notmuch-search.rst @@ -78,25 +78,8 @@ Supported options for **search** include by null characters (--format=text0), as a JSON array (--format=json), or as an S-Expression list (--format=sexp). - **sender** - Output all addresses from the *From* header that appear on - any message matching the search terms, either one per line - (--format=text), separated by null characters - (--format=text0), as a JSON array (--format=json), or as - an S-Expression list (--format=sexp). - - Note: Searching for **sender** should be much faster than - searching for **recipients**, because sender addresses are - cached directly in the database whereas other addresses - need to be fetched from message files. - - **recipients** - Like **sender** but for addresses from *To*, *Cc* and - *Bcc* headers. - This option can be given multiple times to combine different - outputs. Currently, this is only supported for **sender** and - **recipients** outputs. + outputs. ``--sort=``\ (**newest-first**\ \|\ **oldest-first**) This option can be used to present results in either @@ -173,3 +156,4 @@ SEE ALSO **notmuch-dump(1)**, **notmuch-hooks(5)**, **notmuch-insert(1)**, **notmuch-new(1)**, **notmuch-reply(1)**, **notmuch-restore(1)**, **notmuch-search-terms(7)**, **notmuch-show(1)**, **notmuch-tag(1)** +***notmuch-address(1)** diff --git a/doc/man1/notmuch.rst b/doc/man1/notmuch.rst index 97102943..98590a40 100644 --- a/doc/man1/notmuch.rst +++ b/doc/man1/notmuch.rst @@ -88,8 +88,8 @@ Several of the notmuch commands accept search terms with a common syntax. See **notmuch-search-terms**\ (7) for more details on the supported syntax. -The **search**, **show** and **count** commands are used to query the -email database. +The **search**, **show**, **address** and **count** commands are used +to query the email database. The **reply** command is useful for preparing a template for an email reply. @@ -128,7 +128,8 @@ SEE ALSO **notmuch-config(1)**, **notmuch-count(1)**, **notmuch-dump(1)**, **notmuch-hooks(5)**, **notmuch-insert(1)**, **notmuch-new(1)**, **notmuch-reply(1)**, **notmuch-restore(1)**, **notmuch-search(1)**, -**notmuch-search-terms(7)**, **notmuch-show(1)**, **notmuch-tag(1)** +**notmuch-search-terms(7)**, **notmuch-show(1)**, **notmuch-tag(1)**, +***notmuch-address(1)** The notmuch website: **http://notmuchmail.org** |
