X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=postpone.c;fp=postpone.c;h=5fda6cec492ad0cd7ad99e5913c3017709a670da;hp=d8d8cf5979afdaf8a8c04c696c64e6bea7e30976;hb=8d429041536e4508e8dd00b390721895dc324b9b;hpb=9ed7a487e3a922f2cbb222961c2c9710c3a65f91 diff --git a/postpone.c b/postpone.c index d8d8cf5..5fda6ce 100644 --- a/postpone.c +++ b/postpone.c @@ -604,11 +604,10 @@ int mutt_prepare_template (FILE * fp, CONTEXT * ctx, HEADER * newhdr, parameter_delval(&b->parameter, "x-mutt-noconv"); } - mutt_adv_mktemp (NULL, file, sizeof (file)); - if ((s.fpout = safe_fopen (file, "w")) == NULL) + s.fpout = m_tempfile(file, sizeof(file), NONULL(Tempdir), file); + if (!s.fpout) goto bail; - if (mutt_is_application_pgp (b) & (ENCRYPT | SIGN)) { mutt_body_handler (b, &s);