diff options
| author | Gerd Moellmann | 2000-04-03 19:31:33 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-04-03 19:31:33 +0000 |
| commit | 0740c7388633ca206635b52d0b39e0f16dec1872 (patch) | |
| tree | eb306952bab68852bc1c5b91383aaf3c76db141b | |
| parent | cbbc32051374d25a92a0a33014d51118ff6d10fc (diff) | |
| download | emacs-0740c7388633ca206635b52d0b39e0f16dec1872.tar.gz emacs-0740c7388633ca206635b52d0b39e0f16dec1872.zip | |
(sendmail-user-agent-compose): Recognize a `body'
header and insert its value as mail body.
| -rw-r--r-- | lisp/simple.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 2f23d1dc529..2ae66339661 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3610,18 +3610,22 @@ The properties used on SYMBOL are `composefunc', `sendfunc', | |||
| 3610 | (same-window-regexps nil)) | 3610 | (same-window-regexps nil)) |
| 3611 | (funcall switch-function "*mail*"))) | 3611 | (funcall switch-function "*mail*"))) |
| 3612 | (let ((cc (cdr (assoc-ignore-case "cc" other-headers))) | 3612 | (let ((cc (cdr (assoc-ignore-case "cc" other-headers))) |
| 3613 | (in-reply-to (cdr (assoc-ignore-case "in-reply-to" other-headers)))) | 3613 | (in-reply-to (cdr (assoc-ignore-case "in-reply-to" other-headers))) |
| 3614 | (body (cdr (assoc-ignore-case "body" other-headers)))) | ||
| 3614 | (or (mail continue to subject in-reply-to cc yank-action send-actions) | 3615 | (or (mail continue to subject in-reply-to cc yank-action send-actions) |
| 3615 | continue | 3616 | continue |
| 3616 | (error "Message aborted")) | 3617 | (error "Message aborted")) |
| 3617 | (save-excursion | 3618 | (save-excursion |
| 3618 | (rfc822-goto-eoh) | 3619 | (rfc822-goto-eoh) |
| 3619 | (while other-headers | 3620 | (while other-headers |
| 3620 | (if (not (assoc-ignore-case (car (car other-headers)) | 3621 | (unless (member-ignore-case (car (car other-headers)) |
| 3621 | '(("in-reply-to") ("cc")))) | 3622 | '("in-reply-to" "cc" "body")) |
| 3622 | (insert (car (car other-headers)) ": " | 3623 | (insert (car (car other-headers)) ": " |
| 3623 | (cdr (car other-headers)) "\n")) | 3624 | (cdr (car other-headers)) "\n")) |
| 3624 | (setq other-headers (cdr other-headers))) | 3625 | (setq other-headers (cdr other-headers))) |
| 3626 | (when body | ||
| 3627 | (forward-line 1) | ||
| 3628 | (insert body)) | ||
| 3625 | t))) | 3629 | t))) |
| 3626 | 3630 | ||
| 3627 | (define-mail-user-agent 'mh-e-user-agent | 3631 | (define-mail-user-agent 'mh-e-user-agent |