bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25436: 25.1; sendmail does not add a Date: header in FCC


From: Francesco Potortì
Subject: 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))






reply via email to

[Prev in Thread] Current Thread [Next in Thread]