]> git.eshelyaron.com Git - emacs.git/commitdiff
Include "Date:" in mail messages filed by 'sendmail-send-it'
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Jan 2017 08:55:16 +0000 (10:55 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 Jan 2017 08:55:16 +0000 (10:55 +0200)
* lisp/mail/sendmail.el (mail-do-fcc): Insert a 'Date:' header
into the filed message.  In the outgoing message, sendmail will
add the date, but the composed message body doesn't have it.
(Bug#25436)

lisp/mail/sendmail.el

index 690825bf1e5412fcbe6ab1c3cc1ede02bd057ca4..70c8ea1f937de7ba62953e66dfc0c0cab31beccd 100644 (file)
@@ -28,8 +28,8 @@
 
 ;;; Code:
 (require 'mail-utils)
-
 (require 'rfc2047)
+(autoload 'message-make-date "message")
 
 (defgroup sendmail nil
   "Mail sending commands for Emacs."
@@ -1409,6 +1409,7 @@ just append to the file, in Babyl format if necessary."
        (require 'mail-utils)
        (insert (mail-rfc822-time-zone time) " ")
        (goto-char (point-max))
+       (insert "Date: " (message-make-date) "\n")
        (insert-buffer-substring mailbuf)
        ;; Make sure messages are separated.
        (goto-char (point-max))