X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=postpone.c;h=1145bf63f977c44f60e8c6f593c4075a02def629;hp=4a08b97f0c08cfd1fbbd62e95eecfc2e79d98231;hb=55de28a5bb96c3edfbb2a3b080356acbb44a3cc4;hpb=fc854762626c5e2dce8c5618860a882934ec81d2 diff --git a/postpone.c b/postpone.c index 4a08b97..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 @@ -135,14 +135,14 @@ static void post_entry (char *s, ssize_t slen, MUTTMENU * menu, int entry) CONTEXT *ctx = (CONTEXT *) menu->data; _mutt_make_string (s, slen, NONULL (HdrFmt), ctx, ctx->hdrs[entry], - M_FORMAT_ARROWCURSOR); + option(OPTARROWCURSOR) ? M_FORMAT_ARROWCURSOR : 0); } static HEADER *select_msg (void) { MUTTMENU *menu; int i, done = 0, r = -1; - char helpstr[SHORT_STRING]; + char helpstr[STRING]; short orig_sort; menu = mutt_new_menu (); @@ -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); @@ -597,7 +594,7 @@ int mutt_prepare_template (FILE * fp, CONTEXT * ctx, HEADER * newhdr, parameter_delval(&b->parameter, "x-mutt-noconv"); } - s.fpout = m_tempfile(file, sizeof(file), NONULL(Tempdir), file); + s.fpout = m_tempfile(file, sizeof(file), NONULL(MCore.tmpdir), file); if (!s.fpout) goto bail;