From 6d73ca8ec30e4499c8e8ef6e4cdf444528888bcd Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 25 Jul 2020 17:20:39 +0300 Subject: [PATCH] mu4e: fix mu4e~proc-view-path Ensure parameters match. --- mu4e/mu4e-proc.el | 4 ++-- mu4e/mu4e-view.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mu4e/mu4e-proc.el b/mu4e/mu4e-proc.el index ca124add..10c238d5 100644 --- a/mu4e/mu4e-proc.el +++ b/mu4e/mu4e-proc.el @@ -473,7 +473,7 @@ the function registered as `mu4e-view-func'." :decrypt ,(and decrypt t) :verify ,(and verify t)))) -(defun mu4e~proc-view-path (path &optional images decrypt) +(defun mu4e~proc-view-path (path &optional images decrypt verify) "View message at PATH.. Optionally, if IMAGES is non-nil, backend will any images attached to the message, and return them as temp files. The @@ -481,7 +481,7 @@ result will be delivered to the function registered as `mu4e-view-func'. Optionally DECRYPT and VERIFY." (mu4e~call-mu `(view :path ,path - :extract-images ,(if mu4e-view-show-images t nil) + :extract-images ,(if images t nil) :decrypt ,(and decrypt t) :verify ,(and verify t)))) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index b124034a..b8dd0ffc 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -1508,7 +1508,7 @@ attachments) in response to a (mu4e~proc-extract 'temp ... )." ;; remember the mapping path->docid, which maps the path of the embedded ;; message to the docid of its parent (puthash path docid mu4e~path-parent-docid-map) - (mu4e~proc-view-path path mu4e-decryption-policy)) + (mu4e~proc-view-path path mu4e-view-show-images mu4e-decryption-policy)) ((string= what "emacs") (find-file path) ;; make the buffer read-only since it usually does not make