Mercurial > emacs
comparison lisp/simple.el @ 28491:3e21859cd0e7
(sendmail-user-agent-compose): Recognize a `body'
header and insert its value as mail body.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 03 Apr 2000 19:31:33 +0000 |
parents | 89fb4e786f9c |
children | aef61acb21de |
comparison
equal
deleted
inserted
replaced
28490:9958b6d95bd6 | 28491:3e21859cd0e7 |
---|---|
3608 (special-display-regexps nil) | 3608 (special-display-regexps nil) |
3609 (same-window-buffer-names nil) | 3609 (same-window-buffer-names nil) |
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 |
3628 'mh-smail-batch 'mh-send-letter 'mh-fully-kill-draft | 3632 'mh-smail-batch 'mh-send-letter 'mh-fully-kill-draft |
3629 'mh-before-send-letter-hook) | 3633 'mh-before-send-letter-hook) |