From: Juan Altmayer Pizzorno Date: Tue, 13 May 2003 12:50:04 +0000 (+0000) Subject: view-attachments does not extract the message within a x-pkcs7-mime X-Git-Tag: pre-type-punning-patch~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd839ef7429f45f306299f52b39b8fe364506ecf;p=mutt view-attachments does not extract the message within a x-pkcs7-mime if it's only signed, but not encrypted. Such a message results, for example, from a decrypt-save if the message was previously encrypted and signed. --- diff --git a/recvattach.c b/recvattach.c index f27d712c..5850fe64 100644 --- a/recvattach.c +++ b/recvattach.c @@ -850,11 +850,12 @@ void mutt_view_attachments (HEADER *hdr) return; - if (WithCrypto && (hdr->security & ENCRYPT)) + if (WithCrypto && ((hdr->security & ENCRYPT) || + (mutt_is_application_smime(hdr->content) & SMIMEOPAQUE))) { need_secured = 1; - - if (!crypt_valid_passphrase(hdr->security)) + + if ((hdr->security & ENCRYPT) && !crypt_valid_passphrase(hdr->security)) { mx_close_message (&msg); return;