From 73e857cf45c82da4fcdd53e8a4a94d31ed45479f Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 19 Oct 1998 08:41:16 +0000 Subject: [PATCH] Fix the behaviour when recalling postponed messages: Content types would not be restored. --- postpone.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/postpone.c b/postpone.c index 2eae2d72..2775b142 100644 --- a/postpone.c +++ b/postpone.c @@ -422,6 +422,7 @@ int mutt_edit_message (CONTEXT *ctx, HEADER *newhdr, HEADER *hdr) safe_free ((void *) &b->filename); b->filename = safe_strdup (file); b->unlink = 1; + mutt_stamp_attachment (b); mutt_free_body (&b->parts); b = b->next; } @@ -437,6 +438,14 @@ int mutt_edit_message (CONTEXT *ctx, HEADER *newhdr, HEADER *hdr) return (-1); } newhdr->content = mutt_make_file_attach (file); + + FREE (&newhddr->content->subtype); + FREE (&newhdr->content->xtype); + + newhdr->content->type = hdr->content->type; + newhdr->content->xtype = safe_strdup (hdr->content->xtype); + newhdr->content->subtype = safe_strdup (hdr->content->subtype); + newhdr->content->use_disp = 0; /* no content-disposition */ newhdr->content->unlink = 1; /* delete when we are done */ } -- 2.50.0