changeset 16955:228994bc4b43

(sendmail-user-agent): Insert all the OTHER-HEADERS.
author Richard M. Stallman <rms@gnu.org>
date Fri, 31 Jan 1997 20:44:12 +0000
parents 380e33f3a5c6
children bfa27111d35b
files lisp/simple.el
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Fri Jan 31 19:53:54 1997 +0000
+++ b/lisp/simple.el	Fri Jan 31 20:44:12 1997 +0000
@@ -2887,7 +2887,17 @@
 	   (in-reply-to (cdr (assoc-ignore-case "in-reply-to" other-headers))))
        (or (mail continue to subject in-reply-to cc yank-action send-actions)
 	   continue
-	   (error "Message aborted"))))
+	   (error "Message aborted"))
+       (save-excursion
+	 (goto-char (point-min))
+	 (search-forward mail-header-separator)
+	 (beginning-of-line)
+	 (while other-headers
+	   (if (not (member (car (car other-headers)) '("in-reply-to" "cc")))
+	       (insert (car (car other-headers)) ": "
+		       (cdr (car other-headers)) "\n"))
+	   (setq other-headers (cdr other-headers)))
+	 t)))
   'mail-send-and-exit)
 
 (define-mail-user-agent 'mh-e-user-agent