headers: require proc-view even for gnus

Temporary measure, so e.g. view-in-browser works

Fixes #1579.
This commit is contained in:
Dirk-Jan C. Binnema
2020-02-21 19:24:51 +02:00
parent bd6865a00b
commit 837ab0b703

View File

@ -1702,11 +1702,16 @@ window. "
(mu4e-error "Cannot get a message view")) (mu4e-error "Cannot get a message view"))
(select-window viewwin) (select-window viewwin)
(switch-to-buffer (mu4e~headers-get-loading-buf)) (switch-to-buffer (mu4e~headers-get-loading-buf))
;; note, in the 'gnus' case, we don't need to call the server to get the ;; Note, ideally in the 'gnus' case, we don't need to call the server to get
;; body etc., we only need the path which we already have. ;; the body etc., we only need the path which we already have.
(if mu4e-view-use-gnus ;;
(mu4e-view msg) ;; However, for now we still need the body for e.g. view-in-browser so let's
(mu4e~proc-view docid mu4e-view-show-images decrypt)))) ;; not yet do that.
;; (if mu4e-view-use-gnus
;; (mu4e-view msg)
;; (mu4e~proc-view docid mu4e-view-show-images decrypt))
(mu4e~proc-view docid mu4e-view-show-images decrypt)))
(defun mu4e-headers-rerun-search () (defun mu4e-headers-rerun-search ()
"Rerun the search for the last search expression." "Rerun the search for the last search expression."