]> git.cworth.org Git - notmuch/commit
cli/show: produce "email" element in sigstatus
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 27 May 2021 01:44:58 +0000 (21:44 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 26 Jun 2021 16:07:47 +0000 (13:07 -0300)
commit8c29a5da096b0314c6cca8889b740b79a9a548ed
tree4e967955f6f29c0b74d949fc90e18f8dc4a27ab4
parent4b0c6fb2f1ba989fee554cb8fa2612046d6414a8
cli/show: produce "email" element in sigstatus

When the certificate that signs a message is known to be valid, GMime
is capable of reporting on the e-mail address embedded in the
certificate.

We pass this information along to the caller of "notmuch show", as
often only the e-mail address of the certificate has actually been
checked/verified.

Furthermore, signature verification should probably at some point
compare the e-mail address of the caller against the sender address of
the message itself.  Having to parse what gmime thinks is a "userid"
to extract an e-mail address seems clunky and unnecessary if gmime
already thinks it knows what the e-mail address is.

See id:878s41ax6t.fsf@fifthhorseman.net for more motivation and discussion.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
devel/schemata
notmuch-show.c
test/T350-crypto.sh
test/T355-smime.sh
test/T356-protected-headers.sh
test/test-lib.sh
util/gmime-extra.c
util/gmime-extra.h