server/mu4e: update decrypt/verify options

"extract-encrypted" -> "decrypt"

and a separate option for "verify"
This commit is contained in:
Dirk-Jan C. Binnema
2020-02-28 00:37:12 +02:00
parent 6b2bdf4f6d
commit 36a5d291d9
2 changed files with 24 additions and 16 deletions

View File

@ -330,7 +330,7 @@ The result is delivered to the function registered as
`mu4e-compose-func'."
(mu4e~call-mu `(compose
:type ,type
:extract-encrypted ,decrypt
:decrypt ,decrypt
:docid ,docid)))
(defun mu4e~proc-contacts (personal after tstamp)
@ -357,7 +357,7 @@ to a temporary file, then respond with
:action ,action
:docid ,docid
:index ,index
:extract-encrypted ,decrypt
:decrypt ,decrypt
:path ,path
:what ,what
:param ,param)))
@ -467,28 +467,30 @@ respectively."
<docid> :fcc <path>)."
(mu4e~call-mu `(sent :path ,path)))
(defun mu4e~proc-view (docid-or-msgid &optional images decrypt)
(defun mu4e~proc-view (docid-or-msgid &optional images decrypt verify)
"Get a message DOCID-OR-MSGID.
Optionally, if IMAGES is non-nil, backend will any images
attached to the message, and return them as temp files. DECRYPT
attached to the message, and return them as temp files. DECRYPT and VERIFY
if necessary. The result will be delivered to the function
registered as `mu4e-view-func'."
(mu4e~call-mu `(view
:docid ,(if (stringp docid-or-msgid) nil docid-or-msgid)
:msgid ,(if (stringp docid-or-msgid) docid-or-msgid nil)
:extract-images ,images
:extract-encrypted ,decrypt)))
:decrypt ,decrypt
:verify ,verify)))
(defun mu4e~proc-view-path (path &optional images decrypt)
"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
result will be delivered to the function registered as
`mu4e-view-func'. Optionally DECRYPT."
`mu4e-view-func'. Optionally DECRYPT and VERIFY."
(mu4e~call-mu `(view
:path ,path
:extract-images ,images
:extract-encrypted ,decrypt)))
:decrypt ,decrypt
:verify ,verify)))
;;; _
(provide 'mu4e-proc)