aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1998-09-21 19:47:00 +0000
committerKarl Heuer1998-09-21 19:47:00 +0000
commit7d8a6e1fc4ace52718ecab389e9b9532b9d36080 (patch)
tree92ad336a7927dee3ccf15d6744ac2086a4bdf1cc
parentf3e7c0dc58b24bf2d3ad356ab7c193a7acf1809a (diff)
downloademacs-7d8a6e1fc4ace52718ecab389e9b9532b9d36080.tar.gz
emacs-7d8a6e1fc4ace52718ecab389e9b9532b9d36080.zip
(rmail-resend): Work properly if invoked from summary.
-rw-r--r--lisp/mail/rmail.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 341565bc52a..dad0cd0aae5 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2891,11 +2891,10 @@ typically for purposes of moderating a list."
2891 (if (not from) (setq from user-mail-address)) 2891 (if (not from) (setq from user-mail-address))
2892 (let ((tembuf (generate-new-buffer " sendmail temp")) 2892 (let ((tembuf (generate-new-buffer " sendmail temp"))
2893 (case-fold-search nil) 2893 (case-fold-search nil)
2894 (mailbuf (current-buffer))) 2894 (mailbuf rmail-buffer))
2895 (unwind-protect 2895 (unwind-protect
2896 (save-excursion 2896 (with-current-buffer tembuf
2897 ;;>> Copy message into temp buffer 2897 ;;>> Copy message into temp buffer
2898 (set-buffer tembuf)
2899 (insert-buffer-substring mailbuf) 2898 (insert-buffer-substring mailbuf)
2900 (goto-char (point-min)) 2899 (goto-char (point-min))
2901 ;; Delete any Sender field, since that's not specifiable. 2900 ;; Delete any Sender field, since that's not specifiable.
@@ -2957,7 +2956,8 @@ typically for purposes of moderating a list."
2957 (let (mail-aliases) 2956 (let (mail-aliases)
2958 (funcall send-mail-function))) 2957 (funcall send-mail-function)))
2959 (kill-buffer tembuf)) 2958 (kill-buffer tembuf))
2960 (rmail-set-attribute "resent" t rmail-current-message))) 2959 (with-current-buffer rmail-buffer
2960 (rmail-set-attribute "resent" t rmail-current-message))))
2961 2961
2962(defvar mail-unsent-separator 2962(defvar mail-unsent-separator
2963 (concat "^ *---+ +Unsent message follows +---+ *$\\|" 2963 (concat "^ *---+ +Unsent message follows +---+ *$\\|"