X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=recvattach.c;h=b9237f80b115c8d185e7af4d82b01a43eeb74220;hb=e01486aabea6f0af36933158bd58b9ab03b30add;hp=6c49fa6bfd8e7f7028f96820dce52e72bc440809;hpb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3;p=apps%2Fmadmutt.git diff --git a/recvattach.c b/recvattach.c index 6c49fa6..b9237f8 100644 --- a/recvattach.c +++ b/recvattach.c @@ -95,7 +95,7 @@ void mutt_update_tree (ATTACHPTR ** idx, short idxlen) } if (idx[x]->tree) { - if (safe_strcmp (idx[x]->tree, buf) != 0) + if (mutt_strcmp (idx[x]->tree, buf) != 0) str_replace (&idx[x]->tree, buf); } else @@ -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.");