# HG changeset patch # User Gerd Moellmann # Date 954790293 0 # Node ID 3e21859cd0e7b031944c66ad4eb65c8bc8a36f29 # Parent 9958b6d95bd650cdc681d635af1e1aab7dce1ece (sendmail-user-agent-compose): Recognize a `body' header and insert its value as mail body. diff -r 9958b6d95bd6 -r 3e21859cd0e7 lisp/simple.el --- a/lisp/simple.el Mon Apr 03 19:29:56 2000 +0000 +++ b/lisp/simple.el Mon Apr 03 19:31:33 2000 +0000 @@ -3610,18 +3610,22 @@ (same-window-regexps nil)) (funcall switch-function "*mail*"))) (let ((cc (cdr (assoc-ignore-case "cc" other-headers))) - (in-reply-to (cdr (assoc-ignore-case "in-reply-to" other-headers)))) + (in-reply-to (cdr (assoc-ignore-case "in-reply-to" other-headers))) + (body (cdr (assoc-ignore-case "body" other-headers)))) (or (mail continue to subject in-reply-to cc yank-action send-actions) continue (error "Message aborted")) (save-excursion (rfc822-goto-eoh) (while other-headers - (if (not (assoc-ignore-case (car (car other-headers)) - '(("in-reply-to") ("cc")))) + (unless (member-ignore-case (car (car other-headers)) + '("in-reply-to" "cc" "body")) (insert (car (car other-headers)) ": " (cdr (car other-headers)) "\n")) (setq other-headers (cdr other-headers))) + (when body + (forward-line 1) + (insert body)) t))) (define-mail-user-agent 'mh-e-user-agent