aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-09-14 19:00:13 +0000
committerRichard M. Stallman1992-09-14 19:00:13 +0000
commitce90c14948a61a56c641bdb065436aaf3ccdfca6 (patch)
tree3d3d5823c4ed5286aeb6b31bdd93125f06cfef9a
parent9508896e1dd0ec0eeec1fa426ec826ac978460c6 (diff)
downloademacs-ce90c14948a61a56c641bdb065436aaf3ccdfca6.tar.gz
emacs-ce90c14948a61a56c641bdb065436aaf3ccdfca6.zip
*** empty log message ***
-rw-r--r--lisp/mail/rmail.el39
1 files changed, 21 insertions, 18 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 17ae38a227d..47fc2f3abfa 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1507,24 +1507,27 @@ use \\[mail-yank-original] to yank the original message into it."
1507 (subject (concat "[" 1507 (subject (concat "["
1508 (mail-strip-quoted-names (mail-fetch-field "From")) 1508 (mail-strip-quoted-names (mail-fetch-field "From"))
1509 ": " (or (mail-fetch-field "Subject") "") "]"))) 1509 ": " (or (mail-fetch-field "Subject") "") "]")))
1510 ;; If only one window, use it for the mail buffer. 1510 ;; Turn off the usual actions for initializing the message body
1511 ;; Otherwise, use another window for the mail buffer 1511 ;; because we want to get only the text from the failure message.
1512 ;; so that the Rmail buffer remains visible 1512 (let (mail-signature mail-setup-hook)
1513 ;; and sending the mail will get back to it. 1513 ;; If only one window, use it for the mail buffer.
1514 (if (funcall (if (one-window-p t) 1514 ;; Otherwise, use another window for the mail buffer
1515 (function mail) 1515 ;; so that the Rmail buffer remains visible
1516 (function mail-other-window)) 1516 ;; and sending the mail will get back to it.
1517 nil nil subject nil nil nil 1517 (if (funcall (if (one-window-p t)
1518 (list (list (function (lambda (buf msgnum) 1518 (function mail)
1519 (save-excursion 1519 (function mail-other-window))
1520 (set-buffer buf) 1520 nil nil subject nil nil nil
1521 (rmail-set-attribute "forwarded" t msgnum)))) 1521 (list (list (function (lambda (buf msgnum)
1522 (current-buffer) 1522 (save-excursion
1523 rmail-current-message))) 1523 (set-buffer buf)
1524 (save-excursion 1524 (rmail-set-attribute "forwarded" t msgnum))))
1525 (goto-char (point-max)) 1525 (current-buffer)
1526 (forward-line 1) 1526 rmail-current-message)))
1527 (insert-buffer forward-buffer))))) 1527 (save-excursion
1528 (goto-char (point-max))
1529 (forward-line 1)
1530 (insert-buffer forward-buffer))))))
1528 1531
1529(defun rmail-resend (address &optional from comment mail-alias-file) 1532(defun rmail-resend (address &optional from comment mail-alias-file)
1530 "Resend current message to ADDRESSES. 1533 "Resend current message to ADDRESSES.