X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=recvattach.c;h=b9237f80b115c8d185e7af4d82b01a43eeb74220;hb=7480539010bab6905c944b11b036492a1a625994;hp=36f4a3e2ee8fd2de8d496b11ada6048c2e56d787;hpb=96d53ff49c308769efbf708e1e65819077cb7af6;p=apps%2Fmadmutt.git diff --git a/recvattach.c b/recvattach.c index 36f4a3e..b9237f8 100644 --- a/recvattach.c +++ b/recvattach.c @@ -886,7 +886,7 @@ void mutt_view_attachments (HEADER * hdr) char helpstr[SHORT_STRING]; MUTTMENU *menu; - BODY *cur; + BODY *cur = NULL; MESSAGE *msg; FILE *fp; ATTACHPTR **idx = NULL; @@ -1077,7 +1077,7 @@ void mutt_view_attachments (HEADER * hdr) } #endif - if (WithCrypto && hdr->security) { + if (WithCrypto && (hdr->security & (~PGP_TRADITIONAL_CHECKED))) { mutt_message _ ("Deletion of attachments from encrypted messages is unsupported.");