* 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)
;;; Code:
(require 'mail-utils)
-
(require 'rfc2047)
+(autoload 'message-make-date "message")
(defgroup sendmail nil
"Mail sending commands for Emacs."
(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))