From 3204825f56040df0a783de4fc99052eabb62b84b Mon Sep 17 00:00:00 2001 From: Mike Kupfer Date: Sun, 31 Dec 2023 09:11:23 -0800 Subject: [PATCH] Fix mangled Subject header field when forwarding (Bug#67360) * lisp/mh-e/mh-comp.el (mh-forward): Overwrite subject when forwarding. --- lisp/mh-e/mh-comp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 92d31bf1826..0d1dcdf626a 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el @@ -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... -- 2.39.2