Skip to content

Commit

Permalink
mu4e-view: ignore decoding errors
Browse files Browse the repository at this point in the history
We can't do much about them; still attempt to show the message.

Fixes #2561.
  • Loading branch information
djcb committed Apr 18, 2024
1 parent e4f2dd7 commit c25eeb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mu4e/mu4e-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit c25eeb2

Please sign in to comment.