diff options
| author | Eric Abrahamsen | 2024-04-20 17:25:20 -0700 |
|---|---|---|
| committer | Eric Abrahamsen | 2024-04-20 17:25:20 -0700 |
| commit | 3dfca6f9c7f4da512fff48cf6957c6492e2c0449 (patch) | |
| tree | 1061bba76aaefbcaed25d803c8de900dd81f52a1 | |
| parent | 21e33567fabdc1310005ff6f96684be514527e8d (diff) | |
| download | emacs-3dfca6f9c7f4da512fff48cf6957c6492e2c0449.tar.gz emacs-3dfca6f9c7f4da512fff48cf6957c6492e2c0449.zip | |
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'.
| -rw-r--r-- | lisp/gnus/message.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 979d2fecf56..b2805774162 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -5768,8 +5768,10 @@ The result is a fixnum." | |||
| 5768 | (with-temp-buffer | 5768 | (with-temp-buffer |
| 5769 | (insert-buffer-substring buf) | 5769 | (insert-buffer-substring buf) |
| 5770 | (message-clone-locals buf) | 5770 | (message-clone-locals buf) |
| 5771 | ;; Avoid re-doing things like GPG-encoding secret parts. | 5771 | ;; Avoid re-doing things like GPG-encoding secret parts, unless |
| 5772 | (if (not encoded-cache) | 5772 | ;; the user has requested that attachments be externalized, in |
| 5773 | ;; which case we have to re-encode the message body. | ||
| 5774 | (if (or mml-externalize-attachments (not encoded-cache)) | ||
| 5773 | (message-encode-message-body) | 5775 | (message-encode-message-body) |
| 5774 | (erase-buffer) | 5776 | (erase-buffer) |
| 5775 | (insert encoded-cache)) | 5777 | (insert encoded-cache)) |