summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2023-10-02 22:54:57 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2024-04-18 22:35:52 +0300
commitc25eeb220987aa57dc2f51a2d2d29c62a0fba9ce (patch)
tree7e96f52997486d693441534aa3e8067d6e409c89
parente4f2dd7344716fc7a985ad8856c5c65d0a24887a (diff)
mu4e-view: ignore decoding errors
We can't do much about them; still attempt to show the message. Fixes #2561.
-rw-r--r--mu4e/mu4e-view.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el
index 0c189df..7bb8137 100644
--- a/mu4e/mu4e-view.el
+++ b/mu4e/mu4e-view.el
@@ -676,7 +676,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)
@@ -727,7 +728,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)
;; `gnus-summary-bookmark-make-record' does not work properly when "appeased."