This avoids requiring gnus-sum, which is currently where this variable
is defined.
---
 emacs/notmuch-lib.el    | 3 ++-
 test/T450-emacs-show.sh | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 8ca416d4..37fb4018 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -693,7 +693,8 @@ current buffer, if possible."
            (insert (notmuch-get-bodypart-binary msg part process-crypto)))
          (when (mm-inlinable-p handle)
            (set-buffer display-buffer)
-           (mm-display-part handle)
+           (notmuch-dlet ((gnus-newsgroup-charset nil))
+             (mm-display-part handle))
            ;; restore major mode if changed by gnus
            (notmuch-show-mode)
            t))))))
diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh
index 75a52640..7a731ac7 100755
--- a/test/T450-emacs-show.sh
+++ b/test/T450-emacs-show.sh
@@ -220,7 +220,6 @@ test_emacs '(notmuch-show 
"id:basic-encryp...@crypto.notmuchmail.org")
 test_expect_equal_file $EXPECTED/notmuch-show-decrypted-message OUTPUT
 
 test_begin_subtest "show encrypted rfc822 message"
-test_subtest_known_broken
 test_emacs '(notmuch-show 
"id:encrypted-rfc822-attachm...@crypto.notmuchmail.org")
             (test-visible-output)'
 count=$(fgrep -c '!!!' OUTPUT)
-- 
2.30.2
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to