GNU bug report logs - #25436
25.1; sendmail does not add a Date: header in FCC

Previous Next

Package: emacs;

Reported by: Francesco Potortì <pot <at> gnu.org>

Date: Fri, 13 Jan 2017 14:16:01 UTC

Severity: normal

Found in version 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 25436 <at> debbugs.gnu.org (full text, mbox):

From: Francesco Potortì <pot <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 25436 <at> debbugs.gnu.org
Subject: Re: bug#25436: 25.1; sendmail does not add a Date: header in FCC
Date: Fri, 13 Jan 2017 19:38:41 +0100
>Eli Zaretskii wrote:
>
>> The important question is why Date is not generated in
>> the mail buffer in your case.
>
>Are you sure?
>emacs -Q
>C-x m
>  -> No Date: header in mail buffer.
>
>This seems correct, because if Date was added then, it might have no
>relation to when the message was sent.
>
>smtpmail-send-it adds Date: at sending time.
>
>sendmail.el has always relied on "sendmail" adding Date:, AFAICS.
>mail-do-fcc only adds Date: for Babyl files.
>Perhaps the date in the mbox From line was assumed to be good enough for
>the alternative case.

Ok, thanks for checking.  That's exactly what I was thinking, but had no
time to verify.

As far as I understand, the only change needed is in mail-do-fcc:


--- sendmail.el	2017-01-13 14:46:08.715407789 +0100
+++ sendmail.el.orig	2017-01-13 14:46:18.735581196 +0100
@@ -1408,7 +1408,6 @@ just append to the file, in Babyl format
 	(require 'mail-utils)
 	(insert (mail-rfc822-time-zone time) " ")
 	(goto-char (point-max))
-	(insert "Date: " (mail-rfc822-date) "\n")
 	(insert-buffer-substring mailbuf)
 	;; Make sure messages are separated.
 	(goto-char (point-max))





This bug report was last modified 8 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.