]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix mangled Subject header field when forwarding (Bug#67360)
authorMike Kupfer <kupfer@rawbw.com>
Sun, 31 Dec 2023 17:11:23 +0000 (09:11 -0800)
committerBill Wohler <wohler@newt.com>
Mon, 1 Jan 2024 18:32:48 +0000 (10:32 -0800)
* lisp/mh-e/mh-comp.el (mh-forward): Overwrite subject when
forwarding.

lisp/mh-e/mh-comp.el

index 92d31bf1826fdbe126a35425b1fbf2220a20fbb1..0d1dcdf626a87972e71253b5408180c4bb4342f3 100644 (file)
@@ -574,7 +574,7 @@ See also `mh-compose-forward-as-mime-flag',
         (setq orig-subject (mh-get-header-field "Subject:")))
       (let ((forw-subject
              (mh-forwarded-letter-subject orig-from orig-subject)))
-        (mh-insert-fields "Subject:" forw-subject)
+        (mh-modify-header-field "Subject" forw-subject t)
         (goto-char (point-min))
         ;; Set the local value of mh-mail-header-separator according to what is
         ;; present in the buffer...