Narrow-to-headers.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 25 Aug 2000 03:52:08 +0000 (03:52 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 25 Aug 2000 03:52:08 +0000 (03:52 +0000)
lisp/ChangeLog
lisp/message.el

index 4682643..d3d6551 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-24 23:49:23  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * message.el (message-send-mail): Narrow-to-headers.
+
 2000-08-24  Dave Love  <fx@gnu.org>
 
        * gnus-art.el (gnus-insert-mime-button): Fix help-echo for Emacs
index 4c60687..9a7416e 100644 (file)
@@ -2294,13 +2294,16 @@ It should typically alter the sending method in some way or other."
          ;; require one newline at the end.
          (or (= (preceding-char) ?\n)
              (insert ?\n))
-         (when (and news
+         (when 
+             (save-restriction
+               (message-narrow-to-headers)
+               (and news
                     (or (message-fetch-field "cc")
                         (message-fetch-field "to"))
                     (string= "text/plain"
                              (car
                               (mail-header-parse-content-type
-                               (message-fetch-field "content-type")))))
+                               (message-fetch-field "content-type"))))))
            (message-insert-courtesy-copy))
          (if (or (not message-send-mail-partially-limit)
                  (< (point-max) message-send-mail-partially-limit)