From 4d11abd1caba78d67f644dc11e86adcc590aeccb Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 2 Oct 2023 22:54:57 +0300 Subject: [PATCH] mu4e-view: ignore decoding errors We can't do much about them; still attempt to show the message. Fixes #2561. --- mu4e/mu4e-view.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 003be73a..3548420c 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -678,7 +678,8 @@ determine which browser function to use." (with-temp-buffer (insert-file-contents-literally (mu4e-message-readable-path msg) nil nil nil t) - (run-hooks 'gnus-article-decode-hook) + ;; just continue if some of the decoding fails. + (ignore-errors (run-hooks 'gnus-article-decode-hook)) (let ((header (unless skip-headers (cl-loop for field in '("from" "to" "cc" "date" "subject") when (message-fetch-field field) @@ -725,7 +726,8 @@ determine which browser function to use." (condition-case err (progn (mm-enable-multibyte) - (run-hooks 'gnus-article-decode-hook) + ;; just continue if some of the decoding fails. + (ignore-errors (run-hooks 'gnus-article-decode-hook)) (gnus-article-prepare-display) (mu4e--view-activate-urls) (setq mu4e~gnus-article-mime-handles gnus-article-mime-handles