X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=postpone.c;h=1145bf63f977c44f60e8c6f593c4075a02def629;hp=165438dea7b88dffa77639e586b559ed5d58f85d;hb=55de28a5bb96c3edfbb2a3b080356acbb44a3cc4;hpb=558b0bd9de90a9dc28f409d8f46679bf48c72ded diff --git a/postpone.c b/postpone.c index 165438d..1145bf6 100644 --- a/postpone.c +++ b/postpone.c @@ -23,7 +23,7 @@ #include "handler.h" #include "sort.h" #include "thread.h" -#include +#include "crypt.h" #include @@ -508,17 +508,14 @@ int mutt_prepare_template (FILE * fp, CONTEXT * ctx, HEADER * newhdr, { int ccap = (APPLICATION_PGP | APPLICATION_SMIME) & hdr->security; newhdr->security |= ENCRYPT | ccap; - if (!crypt_valid_passphrase (ccap)) - goto err; - mutt_message _("Decrypting message..."); if (((ccap & APPLICATION_PGP) && crypt_pgp_decrypt_mime (fp, &bfp, newhdr->content, &b) == -1) || ((ccap & APPLICATION_SMIME) && crypt_smime_decrypt_mime (fp, &bfp, newhdr->content, &b) == -1) - || b == NULL) { - err: + || b == NULL) + { mx_close_message (&msg); envelope_delete(&newhdr->env); body_list_wipe(&newhdr->content);