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'.
(cherry picked from commit
3dfca6f9c7f4da512fff48cf6957c6492e2c0449)
(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))