[PATCH] Add --message-headers flag to notmuch-show

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Nov 15 08:59:34 PST 2019


On Thu 2019-11-14 22:44:32 +0200, Tomi Ollila wrote:
> W/ all this information, somewhat exhaustive (not by options, but by
> resources I put making it) list of thougts.
>
>
> 1a by default behave as it is behaving now
>
> 1b alternative, in json and sexp, include *all* headers for the use of
>    frontends (in many other email systems frontends parse full email
>    messages and see all headers, in notmuch case frontends don't have
>    to do so since notmuch did the parsing and provides structured data
>    of (currently subset) that information
>
>
> 2a have option --message-headers= -- when used just those headers requested
>    is returned (I'd personally prefer this over the "differential" options,
>    frontends get exactly what it wants and does not need to consider any
>    default where to add of suppress from)
>
> 2b have --add-message-header=foo --suppress-message-header=qux -- to modify
>    the defult list...
>
> 2c have named stored configurations, which can be retrieved with yet another
>    command line option, since naming is hard, quick potenttially dumb
>    example could be like: --custom-message-headers=my-cli-headers-set-3

thanks for this list.  It seems to miss the other thing that is
currently being contemplated, which is maybe:

  3  have a new "notmuch show" configuration option that affects what
     headers should be emitted

This is distinct from the command-line options detailed in 2a and 2b,
and distinct from the idea of named bundled configuration options in the
config file.

       --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20191115/50e0b9a9/attachment.sig>


More information about the notmuch mailing list