mu4e/ical: Set `mu4e~view-rendering' to t as a buffer local variable

When an ics file is attached but not visualized by default, this is
necessary in order trigger the bug workaround in the advice attached
to `gnus-icalendar-event-from-handle'.
This commit is contained in:
Christophe Troestler 2021-04-06 15:29:56 +02:00
parent f673911277
commit 1dbe818378
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@
(defvar gnus-icalendar-additional-identities)
(defvar helm-comp-read-use-marked)
(defvar mu4e~view-rendering nil)
(defvar-local mu4e~view-rendering nil)
(defcustom mu4e-view-blocked-images "."
"Regexp matching image URLs to be blocked, or nil meaning not
@ -105,6 +105,7 @@ Note that cid images that are embedded in a message wont be blocked."
(mu4e-personal-addresses 'no-regexp)))
(mu4e-view-mode)
(gnus-article-prepare-display))
(setq mu4e~view-rendering t); Needed if e.g. an ics file is buttonized
(setq mu4e~gnus-article-mime-handles gnus-article-mime-handles)
(mu4e~view-activate-urls)
;; `mu4e-view-mode' derives from `gnus-article-mode'.