mirror of https://github.com/djcb/mu.git
mu4e-view: ignore decoding errors
We can't do much about them; still attempt to show the message. Fixes #2561.
This commit is contained in:
parent
e4f2dd7344
commit
c25eeb2209
|
@ -676,7 +676,8 @@ determine which browser function to use."
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert-file-contents-literally
|
(insert-file-contents-literally
|
||||||
(mu4e-message-readable-path msg) nil nil nil t)
|
(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
|
(let ((header (unless skip-headers
|
||||||
(cl-loop for field in '("from" "to" "cc" "date" "subject")
|
(cl-loop for field in '("from" "to" "cc" "date" "subject")
|
||||||
when (message-fetch-field field)
|
when (message-fetch-field field)
|
||||||
|
@ -727,7 +728,8 @@ determine which browser function to use."
|
||||||
(condition-case err
|
(condition-case err
|
||||||
(progn
|
(progn
|
||||||
(mm-enable-multibyte)
|
(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)
|
(gnus-article-prepare-display)
|
||||||
(mu4e--view-activate-urls)
|
(mu4e--view-activate-urls)
|
||||||
;; `gnus-summary-bookmark-make-record' does not work properly when "appeased."
|
;; `gnus-summary-bookmark-make-record' does not work properly when "appeased."
|
||||||
|
|
Loading…
Reference in New Issue