]> git.eshelyaron.com Git - emacs.git/commitdiff
Make gnus-gcc-externalize-attachments work again
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 6 Jul 2021 15:04:28 +0000 (17:04 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 6 Jul 2021 15:04:28 +0000 (17:04 +0200)
* lisp/gnus/gnus-msg.el (gnus-inews-do-gcc): Allow externalizing
parts again by defeating the cache (bug#49436).

lisp/gnus/gnus-msg.el

index bac987e2f008c9a7e87d4d59834680c5f539d572..db54237a76784cf85ce3dd6326691af97621f65f 100644 (file)
@@ -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))