mu4e-compose: use raw message for "forward"

Not the decoded one.
This commit is contained in:
Dirk-Jan C. Binnema 2023-11-08 18:23:25 +02:00
parent 4845872118
commit 30a78d3cb9
1 changed files with 9 additions and 1 deletions

View File

@ -674,7 +674,15 @@ PARENT is the \"parent\" message; nil
(let* ((message-this-is-mail t)
(message-generate-headers-first nil)
(message-newsreader mu4e-user-agent-string)
(orig (and parent (mu4e--decoded-message parent))))
;; for 'forward' we just need the raw original;
;; the rest need a decoded version.
(orig (and parent
(if (eq compose-type 'forward)
(with-temp-buffer
(insert-file-contents-literally
(mu4e-message-readable-path parent) nil nil nil t)
(buffer-string))
(mu4e--decoded-message parent)))))
;; we handle it ourselves.
(setq-local gnus-message-replysign nil
gnus-message-replyencrypt nil