aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-02 06:50:44 +0000
committerRichard M. Stallman1998-05-02 06:50:44 +0000
commit360b548370c883d3e0b8df6aa08f6c714eccfe8f (patch)
tree5e24e333761813d6be4d81f615927dfa30800086
parent677a7bcf907c493f9bd9b7d97e105aebab1f0ae0 (diff)
downloademacs-360b548370c883d3e0b8df6aa08f6c714eccfe8f.tar.gz
emacs-360b548370c883d3e0b8df6aa08f6c714eccfe8f.zip
(rfc822-goto-eoh): Stop at a blank line, too.
(rfc822-goto-eoh): New function. (sendmail-user-agent-compose): Use rfc822-goto-eoh.
-rw-r--r--lisp/simple.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 2b9e0266020..9e79a114891 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3450,6 +3450,13 @@ Unibyte strings are converted to multibyte for comparison."
3450 'sendmail-user-agent-compose 3450 'sendmail-user-agent-compose
3451 'mail-send-and-exit) 3451 'mail-send-and-exit)
3452 3452
3453(defun rfc822-goto-eoh ()
3454 ;; Go to header delimiter line in a mail message, following RFC822 rules
3455 (goto-char (point-min))
3456 (while (looking-at "^[^: \n]+:\\|^[ \t]")
3457 (forward-line 1))
3458 (point))
3459
3453(defun sendmail-user-agent-compose (&optional to subject other-headers continue 3460(defun sendmail-user-agent-compose (&optional to subject other-headers continue
3454 switch-function yank-action 3461 switch-function yank-action
3455 send-actions) 3462 send-actions)
@@ -3465,9 +3472,7 @@ Unibyte strings are converted to multibyte for comparison."
3465 continue 3472 continue
3466 (error "Message aborted")) 3473 (error "Message aborted"))
3467 (save-excursion 3474 (save-excursion
3468 (goto-char (point-min)) 3475 (rfc822-goto-eoh)
3469 (search-forward mail-header-separator)
3470 (beginning-of-line)
3471 (while other-headers 3476 (while other-headers
3472 (if (not (member (car (car other-headers)) '("in-reply-to" "cc"))) 3477 (if (not (member (car (car other-headers)) '("in-reply-to" "cc")))
3473 (insert (car (car other-headers)) ": " 3478 (insert (car (car other-headers)) ": "