]> git.notmuchmail.org Git - notmuch/commit
crypto: Avoid pretending to verify signatures on unsigned encrypted mail
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 20 Apr 2019 17:02:57 +0000 (13:02 -0400)
committerDavid Bremner <david@tethera.net>
Fri, 26 Apr 2019 11:03:15 +0000 (08:03 -0300)
commitafb0b11dcd08aa9091be1d89e1c2a9fe6b0e11f0
tree219627337f49a4d2ce5cca520239b5e7c43563aa
parent325a92422737f16377307dbd584158d3ee8cdb51
crypto: Avoid pretending to verify signatures on unsigned encrypted mail

Unsigned encrypted mail shows up with a weird empty signature list.
If we successfully decrypted and there was no signature in it, we
should just not show a sigstatus at all.

The documentation for g_mime_decrypt_result_get_signatures says:

    a GMimeSignatureList or NULL if the stream was not signed.
mime-node.c
test/T350-crypto.sh