[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d8bd7d0 1/2: Make gnus-gcc-externalize-attachments work again

From: Lars Ingebrigtsen
Subject: master d8bd7d0 1/2: Make gnus-gcc-externalize-attachments work again
Date: Tue, 6 Jul 2021 11:07:01 -0400 (EDT)

branch: master
commit d8bd7d015e626c73351938626a01288028ebe1c5
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
 lisp/gnus/gnus-msg.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index bac987e..db54237 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)
+            ;; 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))
              (nnheader-set-temp-buffer " *acc*")
              (setq message-options (with-current-buffer cur message-options))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]