X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=3f6a9ac4d7f248835c5061cd28e0189019e64c13;hp=e1cd5b6b29d0603f82c275c8c036fe2025f39613;hb=89a7d4396b35e8047cbe519e81e22d99a1efd018;hpb=dc35ba82dbe9ba8cb27e623949dcd4b91930d3c5 diff --git a/attach.c b/attach.c index e1cd5b6..3f6a9ac 100644 --- a/attach.c +++ b/attach.c @@ -30,7 +30,7 @@ #include "pager.h" #include "copy.h" #include "mx.h" -#include "mutt_crypt.h" +#include #include "lib/debug.h" @@ -399,7 +399,7 @@ int mutt_view_attachment (FILE * fp, BODY * a, int flag, HEADER * hdr, int unlink_tempfile = 0; is_message = mutt_is_message_type (a->type, a->subtype); - if (WithCrypto && is_message && a->hdr && (a->hdr->security & ENCRYPT) && + if (is_message && a->hdr && (a->hdr->security & ENCRYPT) && !crypt_valid_passphrase (a->hdr->security)) return (rc); use_mailcap = (flag == M_MAILCAP ||