X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postpone.c;h=0b1d68991fc5775e5917de2b5bfc8187c50dce7a;hb=c25bc063f35aaad6938c2022dae7a283346c2769;hp=67128ed718f5ea6c35eb789a6001747a2d428a1b;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258;p=apps%2Fmadmutt.git diff --git a/postpone.c b/postpone.c index 67128ed..0b1d689 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" @@ -36,11 +40,11 @@ #include static struct mapping_t PostponeHelp[] = { - {N_("Exit"), OP_EXIT}, - {N_("Del"), OP_DELETE}, + {N_("Exit"), OP_EXIT}, + {N_("Del"), OP_DELETE}, {N_("Undel"), OP_UNDELETE}, - {N_("Help"), OP_HELP}, - {NULL} + {N_("Help"), OP_HELP}, + {NULL, OP_NULL} }; @@ -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;