]> git.cworth.org Git - notmuch/commit
cli/show: add information about which headers were protected
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 27 May 2019 22:14:16 +0000 (18:14 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 29 May 2019 11:11:50 +0000 (08:11 -0300)
commit56416a54702669a23b7aa8f085a388d0c842e297
tree3d441f1e9e1436e8881ebf8371507d65bf3e5535
parent1c7fbbcc99693c0433f7b06b569ce90c19ac5e1b
cli/show: add information about which headers were protected

The header-mask member of the per-message crypto object allows a
clever UI frontend to mark whether a header was protected (or not).
And if it was protected, it contains enough information to show useful
detail to an interested user.  For example, an MUA could offer a "show
what this message's Subject looked like on the wire" feature in expert
mode.

As before, we only handle Subject for now, but we might be able to
handle other headers in the future.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Amended by db: tweaked schemata notation.
devel/schemata
notmuch-show.c
test/T356-protected-headers.sh