From: Rocco Rutte Date: Thu, 25 Jun 2009 12:36:24 +0000 (+0200) Subject: Add Date: header to postponed messages X-Git-Tag: neomutt-20160307~520 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7690a8a53824d59b9ad55611f5fea3fb28741af5;p=neomutt Add Date: header to postponed messages --- diff --git a/sendlib.c b/sendlib.c index 5915a5481..00d808bc0 100644 --- a/sendlib.c +++ b/sendlib.c @@ -2599,6 +2599,7 @@ int mutt_write_fcc (const char *path, HEADER *hdr, const char *msgid, int post, FILE *tempfp = NULL; int r, need_buffy_cleanup = 0; struct stat st; + char buf[SHORT_STRING]; if (post) set_noconv_flags (hdr->content, 1); @@ -2657,6 +2658,11 @@ int mutt_write_fcc (const char *path, HEADER *hdr, const char *msgid, int post, if (f.magic == M_MMDF || f.magic == M_MBOX) fprintf (msg->fp, "Status: RO\n"); + /* mutt_write_rfc822_header() only writes out a Date: header with + * mode == 0, i.e. _not_ postponment; so write out one ourself */ + if (post) + fprintf (msg->fp, mutt_make_date (buf, sizeof (buf))); + /* (postponment) if the mail is to be signed or encrypted, save this info */ if ((WithCrypto & APPLICATION_PGP) && post && (hdr->security & APPLICATION_PGP))