summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1992-09-04 05:21:09 +0000
committerRichard M. Stallman <rms@gnu.org>1992-09-04 05:21:09 +0000
commit847f73fdb8e17e9b167bec940e2739811764d536 (patch)
tree04cb3e6e3c15537a61a0de0850f6aff39bfa05d5
parent33143604eabbdfd7622d2e942344163793a55cc2 (diff)
downloademacs-847f73fdb8e17e9b167bec940e2739811764d536.tar.gz
entered into RCS
-rw-r--r--lisp/mail/sendmail.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index f13f5dfb838..ade5734ebf7 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -323,6 +323,7 @@ the user from the mailer."
(defun mail-do-fcc (header-end)
(let (fcc-list
(rmailbuf (current-buffer))
+ timezone
(tembuf (generate-new-buffer " rmail output"))
(case-fold-search t))
(save-excursion
@@ -338,8 +339,19 @@ the user from the mailer."
(progn (forward-line 1) (point))))
(set-buffer tembuf)
(erase-buffer)
+ (call-process "date" nil t nil)
+ (goto-char (point-min))
+ (re-search-forward
+ "[0-9] \\([A-Za-z][A-Za-z ]*[A-Za-z]\\)[0-9 ]*$")
+ (setq timezone (buffer-substring (match-beginning 1) (match-end 1)))
+ (erase-buffer)
(insert "\nFrom " (user-login-name) " "
(current-time-string) "\n")
+ ;; Insert the time zone before the year.
+ (forward-char -1)
+ (forward-word -1)
+ (insert timezone " ")
+ (goto-char (point-max))
(insert-buffer-substring rmailbuf)
;; Make sure messages are separated.
(goto-char (point-max))