diff options
| author | Eli Zaretskii | 2017-01-14 10:55:16 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-01-14 10:55:16 +0200 |
| commit | 877c525f4b98bc785f1bb0b50d70f72d09c80eb2 (patch) | |
| tree | d6dc298fdd16d4b6974cf4d983bfe343656c054d | |
| parent | 5b9f08fb867a9a3dca0bc81064202d53d1d52538 (diff) | |
| download | emacs-877c525f4b98bc785f1bb0b50d70f72d09c80eb2.tar.gz emacs-877c525f4b98bc785f1bb0b50d70f72d09c80eb2.zip | |
Include "Date:" in mail messages filed by 'sendmail-send-it'
* 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)
| -rw-r--r-- | lisp/mail/sendmail.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 690825bf1e5..70c8ea1f937 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -28,8 +28,8 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | (require 'mail-utils) | 30 | (require 'mail-utils) |
| 31 | |||
| 32 | (require 'rfc2047) | 31 | (require 'rfc2047) |
| 32 | (autoload 'message-make-date "message") | ||
| 33 | 33 | ||
| 34 | (defgroup sendmail nil | 34 | (defgroup sendmail nil |
| 35 | "Mail sending commands for Emacs." | 35 | "Mail sending commands for Emacs." |
| @@ -1409,6 +1409,7 @@ just append to the file, in Babyl format if necessary." | |||
| 1409 | (require 'mail-utils) | 1409 | (require 'mail-utils) |
| 1410 | (insert (mail-rfc822-time-zone time) " ") | 1410 | (insert (mail-rfc822-time-zone time) " ") |
| 1411 | (goto-char (point-max)) | 1411 | (goto-char (point-max)) |
| 1412 | (insert "Date: " (message-make-date) "\n") | ||
| 1412 | (insert-buffer-substring mailbuf) | 1413 | (insert-buffer-substring mailbuf) |
| 1413 | ;; Make sure messages are separated. | 1414 | ;; Make sure messages are separated. |
| 1414 | (goto-char (point-max)) | 1415 | (goto-char (point-max)) |