mirror of
https://github.com/djcb/mu.git
synced 2024-06-21 06:56:48 +02:00
mu4e-view: small cleanup
This commit is contained in:
parent
6fd4e67f3b
commit
f0cbf1dd7c
|
@ -170,12 +170,12 @@ message extracted at some path.")
|
|||
"View message with MSGID.
|
||||
This is meant for external programs wanting to show specific
|
||||
messages - for example, `mu4e-org'."
|
||||
;; note: hackish; if mu4e-decryption-policy is non-nil (ie., t or 'ask), we
|
||||
;; decrpt the message. Since here we don't know if message is encrypted or
|
||||
;; not, when the policy is 'ask'. we simply assume the user said yes... the
|
||||
;; alternative would be to ask for each message, encrypted or not. maybe we
|
||||
;; need an extra policy...
|
||||
(let ((view-buffer (get-buffer "*mu4e-view*")))
|
||||
;; note: hackish; if mu4e-decryption-policy is non-nil (ie., t or
|
||||
;; 'ask), we decrypt the message. Since here we don't know if
|
||||
;; message is encrypted or not, when the policy is 'ask'. we simply
|
||||
;; assume the user said yes... the alternative would be to ask for
|
||||
;; each message, encrypted or not. maybe we need an extra policy...
|
||||
(let ((view-buffer (get-buffer mu4e~view-buffer-name)))
|
||||
(when view-buffer
|
||||
(kill-buffer view-buffer)))
|
||||
(mu4e~proc-view msgid mu4e-view-show-images mu4e-decryption-policy))
|
||||
|
|
Loading…
Reference in New Issue
Block a user