From: Lars Ingebrigtsen Date: Tue, 6 Jul 2021 15:04:28 +0000 (+0200) Subject: Make gnus-gcc-externalize-attachments work again X-Git-Tag: emacs-28.0.90~1945 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8bd7d015e626c73351938626a01288028ebe1c5;p=emacs.git Make gnus-gcc-externalize-attachments work again * lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Allow externalizing parts again by defeating the cache (bug#49436). --- diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index bac987e2f00..db54237a767 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el @@ -1597,6 +1597,10 @@ this is a reply." (if (stringp gnus-gcc-externalize-attachments) (string-match gnus-gcc-externalize-attachments group) gnus-gcc-externalize-attachments)) + ;; If we want to externalize stuff when GCC-ing, then we + ;; can't use the cache, because that has all the contents. + (when mml-externalize-attachments + (setq encoded-cache nil)) (save-excursion (nnheader-set-temp-buffer " *acc*") (setq message-options (with-current-buffer cur message-options))