X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=postpone.c;h=a197f12bcc4ab8afb3d8e758371459b9a731f82d;hp=67128ed718f5ea6c35eb789a6001747a2d428a1b;hb=9ed6c0f86855d82f8b95b3f623bf2639f0f19d0b;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/postpone.c b/postpone.c index 67128ed..a197f12 100644 --- a/postpone.c +++ b/postpone.c @@ -13,11 +13,15 @@ #endif #include "mutt.h" +#include "ascii.h" +#include "enter.h" +#include "handler.h" #include "mutt_menu.h" #include "rfc1524.h" #include "mime.h" #include "mapping.h" #include "sort.h" +#include "thread.h" #include "mx.h" #ifdef USE_IMAP #include "imap.h" @@ -518,7 +522,7 @@ int mutt_prepare_template (FILE * fp, CONTEXT * ctx, HEADER * newhdr, /* parse the message header and MIME structure */ - fseek (fp, hdr->offset, 0); + fseeko (fp, hdr->offset, 0); newhdr->offset = hdr->offset; newhdr->env = mutt_read_rfc822_header (fp, newhdr, 1, weed); newhdr->content->length = hdr->content->length; @@ -629,7 +633,7 @@ int mutt_prepare_template (FILE * fp, CONTEXT * ctx, HEADER * newhdr, mutt_delete_parameter ("x-mutt-noconv", &b->parameter); } - mutt_adv_mktemp (file, sizeof (file)); + mutt_adv_mktemp (NULL, file, sizeof (file)); if ((s.fpout = safe_fopen (file, "w")) == NULL) goto bail;