mu4e: fix mu4e~proc-view-path
Ensure parameters match.
This commit is contained in:
@ -473,7 +473,7 @@ the function registered as `mu4e-view-func'."
|
|||||||
:decrypt ,(and decrypt t)
|
:decrypt ,(and decrypt t)
|
||||||
:verify ,(and verify 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..
|
"View message at PATH..
|
||||||
Optionally, if IMAGES is non-nil, backend will any images
|
Optionally, if IMAGES is non-nil, backend will any images
|
||||||
attached to the message, and return them as temp files. The
|
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-view-func'. Optionally DECRYPT and VERIFY."
|
||||||
(mu4e~call-mu `(view
|
(mu4e~call-mu `(view
|
||||||
:path ,path
|
:path ,path
|
||||||
:extract-images ,(if mu4e-view-show-images t nil)
|
:extract-images ,(if images t nil)
|
||||||
:decrypt ,(and decrypt t)
|
:decrypt ,(and decrypt t)
|
||||||
:verify ,(and verify t))))
|
:verify ,(and verify t))))
|
||||||
|
|
||||||
|
|||||||
@ -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
|
;; remember the mapping path->docid, which maps the path of the embedded
|
||||||
;; message to the docid of its parent
|
;; message to the docid of its parent
|
||||||
(puthash path docid mu4e~path-parent-docid-map)
|
(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")
|
((string= what "emacs")
|
||||||
(find-file path)
|
(find-file path)
|
||||||
;; make the buffer read-only since it usually does not make
|
;; make the buffer read-only since it usually does not make
|
||||||
|
|||||||
Reference in New Issue
Block a user