From: Richard M. Stallman Date: Fri, 31 Jan 1997 20:44:12 +0000 (+0000) Subject: (sendmail-user-agent): Insert all the OTHER-HEADERS. X-Git-Tag: emacs-20.1~2989 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=17949e23c5b16ffadce74d6ecef9bcf147b78921;p=emacs.git (sendmail-user-agent): Insert all the OTHER-HEADERS. --- diff --git a/lisp/simple.el b/lisp/simple.el index e414c4607db..3ab47f443cb 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -2887,7 +2887,17 @@ The properties used on SYMBOL are `composefunc', `sendfunc', (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