]> git.notmuchmail.org Git - notmuch/commit
test: protected headers should work when both encrypted and signed.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 26 May 2019 22:16:04 +0000 (18:16 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 29 May 2019 11:14:57 +0000 (08:14 -0300)
commitb36248a26eb54fe8c162c7f54d34c343a94265f1
tree8601bc480f63d904ab6ed632d8ed84eba8b3ee23
parent5c3a44681f2fffbd3a7d76e424c134a82470ddd2
test: protected headers should work when both encrypted and signed.

Up to this point, we've tested protected headers on messages that have
either been encrypted or signed, but not both.

This adds a couple tests of signed+encrypted messages, one where the
subject line is masked (outside subject line is "Subject Unavailable")
and another where it is not (outside Subject: matches inner Subject:)

See the discussion at
https://dkg.fifthhorseman.net/blog/e-mail-cryptography.html#protected-headers
for more details about the nuances between signed, stripped, and
stubbed headers.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
test/T356-protected-headers.sh
test/corpora/protected-headers/encrypted-signed-not-masked.eml [new file with mode: 0644]
test/corpora/protected-headers/encrypted-signed.eml [new file with mode: 0644]