X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=commands.c;h=cf56023a22a374fbdfbbfb0e373942b827c37ebf;hp=4e810c96e00aaa22649a9cecf3034796590cfafb;hb=73359dc55ff8f4da32149f7270f7ceaccd658256;hpb=576172ff50f9dd94dd2f5cc91d247c1e50dbe7fc diff --git a/commands.c b/commands.c index 4e810c9..cf56023 100644 --- a/commands.c +++ b/commands.c @@ -91,8 +91,6 @@ int mutt_display_message (HEADER * cur) /* see if crytpo is needed for this message. if so, we should exit curses */ if (cur->security) { if (cur->security & ENCRYPT) { - if (cur->security & APPLICATION_SMIME) - crypt_smime_getkeys (cur->env); cmflags |= M_CM_VERIFY; } else if (cur->security & SIGN) { @@ -105,15 +103,7 @@ int mutt_display_message (HEADER * cur) } if (cmflags & M_CM_VERIFY || cur->security & ENCRYPT) { - if (cur->security & APPLICATION_PGP) { - if (cur->env->from) - crypt_pgp_invoke_getkeys (cur->env->from); - - crypt_invoke_message (APPLICATION_PGP); - } - - if (cur->security & APPLICATION_SMIME) - crypt_invoke_message (APPLICATION_SMIME); + crypt_invoke_message(cur->security); } res = _mutt_copy_message (fpout, msg->fp, cur, cur->content, cmflags,