Re-encode message bodies with externalized attachments during FCC

Bug#70338

* lisp/gnus/message.el (message-do-fcc): If the user has requested to
externalize attachments, we can't use the cached version of the message
body from sending. This mirrors an equivalent check for GCC in
`gnus-inews-do-gcc'.
This commit is contained in:
Eric Abrahamsen 2024-04-20 17:25:20 -07:00
parent 21e33567fa
commit 3dfca6f9c7

View file

@ -5768,8 +5768,10 @@ The result is a fixnum."
(with-temp-buffer
(insert-buffer-substring buf)
(message-clone-locals buf)
;; Avoid re-doing things like GPG-encoding secret parts.
(if (not encoded-cache)
;; Avoid re-doing things like GPG-encoding secret parts, unless
;; the user has requested that attachments be externalized, in
;; which case we have to re-encode the message body.
(if (or mml-externalize-attachments (not encoded-cache))
(message-encode-message-body)
(erase-buffer)
(insert encoded-cache))