mu4e-view: small cleanup

This commit is contained in:
djcb
2015-07-04 12:24:40 +03:00
parent 6fd4e67f3b
commit f0cbf1dd7c

View File

@ -170,12 +170,12 @@ message extracted at some path.")
"View message with MSGID. "View message with MSGID.
This is meant for external programs wanting to show specific This is meant for external programs wanting to show specific
messages - for example, `mu4e-org'." messages - for example, `mu4e-org'."
;; note: hackish; if mu4e-decryption-policy is non-nil (ie., t or 'ask), we ;; note: hackish; if mu4e-decryption-policy is non-nil (ie., t or
;; decrpt the message. Since here we don't know if message is encrypted or ;; 'ask), we decrypt the message. Since here we don't know if
;; not, when the policy is 'ask'. we simply assume the user said yes... the ;; message is encrypted or not, when the policy is 'ask'. we simply
;; alternative would be to ask for each message, encrypted or not. maybe we ;; assume the user said yes... the alternative would be to ask for
;; need an extra policy... ;; each message, encrypted or not. maybe we need an extra policy...
(let ((view-buffer (get-buffer "*mu4e-view*"))) (let ((view-buffer (get-buffer mu4e~view-buffer-name)))
(when view-buffer (when view-buffer
(kill-buffer view-buffer))) (kill-buffer view-buffer)))
(mu4e~proc-view msgid mu4e-view-show-images mu4e-decryption-policy)) (mu4e~proc-view msgid mu4e-view-show-images mu4e-decryption-policy))