]> granicus.if.org Git - mutt/commit
Fix pgp and smime decryption in mutt_prepare_template().
authorKevin McCarthy <kevin@8t8.us>
Sun, 7 Feb 2016 18:15:27 +0000 (10:15 -0800)
committerKevin McCarthy <kevin@8t8.us>
Sun, 7 Feb 2016 18:15:27 +0000 (10:15 -0800)
commitbac3a15413c000951e7140917becf64f958d64ee
treeff6fbc34d7b2da69afa67a2b268c34befb717c30
parentbca31736a8bd296e747c10f812eabc8950c7e1e3
Fix pgp and smime decryption in mutt_prepare_template().

Change the "combined" multipart decryption block to only work for pgp,
since mutt_is_multipart_encrypted() currently only checks for pgp
headers and it therefore only worked for pgp in the first place.

Fix the newhdr->security to be based on what that function returns,
instead of the "context" hdr passed in.

Add a smime decryption block below when iterating through the content.

Fix the application/pgp decryption block to assign to hdr->security
using the type of the app/pgp part instead of hdr->content.
postpone.c