compose: remove server-side handling
It's no longer needed: composition happens on the mu4e side only (until a message is saved).
This commit is contained in:
@ -36,6 +36,8 @@
|
||||
|
||||
(make-obsolete-variable 'mu4e-auto-retrieve-keys "no longer used." "1.3.1")
|
||||
|
||||
(make-obsolete-variable 'mu4e-compose-func "no longer used" "1.11.26")
|
||||
|
||||
(make-obsolete-variable 'mu4e-compose-crypto-reply-encrypted-policy "The use of the
|
||||
'mu4e-compose-crypto-reply-encrypted-policy' variable is deprecated.
|
||||
'mu4e-compose-crypto-policy' should be used instead" "2020-03-06")
|
||||
|
||||
@ -142,13 +142,6 @@ the number of matches. See `mu4e--server-filter' for the format.")
|
||||
This before new headers are displayed, to clear the current
|
||||
headers buffer. See `mu4e--server-filter' for the format.")
|
||||
|
||||
(defvar mu4e-compose-func nil
|
||||
"Function called for each compose message received.
|
||||
I.e., the original message that is used as basis for composing a
|
||||
new message (i.e., either a reply or a forward); the function is
|
||||
passed msg and a symbol (either reply or forward). See
|
||||
`mu4e--server-filter' for the format of <msg-plist>.")
|
||||
|
||||
(defvar mu4e-info-func nil
|
||||
"Function called for each (:info type ....) sexp received.
|
||||
from the server process.")
|
||||
@ -563,20 +556,6 @@ On success, we receive `'(:info add :path <path> :docid <docid>)'
|
||||
as well as `'(:update <msg-sexp>)`'; otherwise, we receive an error."
|
||||
(mu4e--server-call-mu `(add :path ,path)))
|
||||
|
||||
(defun mu4e--server-compose (type decrypt &optional docid)
|
||||
"Compose a message of TYPE, DECRYPT it and use DOCID.
|
||||
TYPE is a symbol, either `forward', `reply', `edit', `resend' or
|
||||
`new', based on an original message (ie, replying to, forwarding,
|
||||
editing, resending) with DOCID or nil for type `new'.
|
||||
|
||||
The result is delivered to the function registered as
|
||||
`mu4e-compose-func'."
|
||||
(mu4e--server-call-mu
|
||||
`(compose
|
||||
:type ,type
|
||||
:decrypt ,(and decrypt t)
|
||||
:docid ,docid)))
|
||||
|
||||
(defun mu4e--server-contacts (personal after maxnum tstamp)
|
||||
"Ask for contacts with PERSONAL AFTER MAXNUM TSTAMP.
|
||||
|
||||
|
||||
@ -255,7 +255,6 @@ chance."
|
||||
(mu4e-setq-if-nil mu4e-erase-func #'mu4e~headers-clear)
|
||||
|
||||
(mu4e-setq-if-nil mu4e-sent-func #'mu4e--default-handler)
|
||||
(mu4e-setq-if-nil mu4e-compose-func #'mu4e--compose-setup)
|
||||
(mu4e-setq-if-nil mu4e-contacts-func #'mu4e--update-contacts)
|
||||
(mu4e-setq-if-nil mu4e-info-func #'mu4e--info-handler)
|
||||
(mu4e-setq-if-nil mu4e-pong-func #'mu4e--default-handler)
|
||||
|
||||
Reference in New Issue
Block a user