From bc51989e65ab33440d8b5a3160eb6e7af05dc0a0 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 9 Apr 2024 23:48:58 +0300 Subject: [PATCH] mu4e-server: get rid of mu4e--server-sent It's no longer needed. --- mu4e/mu4e-server.el | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/mu4e/mu4e-server.el b/mu4e/mu4e-server.el index 5429717c..11a6c177 100644 --- a/mu4e/mu4e-server.el +++ b/mu4e/mu4e-server.el @@ -664,7 +664,7 @@ Returns either (:update ... ) or (:error ) sexp, which are handled my (unless (or (not maildir) (file-exists-p (mu4e-join-paths (mu4e-root-maildir) maildir))) - (mu4e-error "Target dir does not exist")) + (mu4e-error "Target directory does not exist")) (mu4e--server-call-mu `(move :docid ,(if (stringp docid-or-msgid) nil docid-or-msgid) @@ -679,24 +679,17 @@ Returns either (:update ... ) or (:error ) sexp, which are handled my (mu4e--server-call-mu `(ping))) (defun mu4e--server-queries (queries) - "Sends queries to the mu server, expecting a (:queries ...) in response. + "Sends queries to the mu server, expecting a (:queries ...) sexp in response. QUERIES is a list of queries for the number of results with read/unread status are returned in the pong-response." (mu4e--server-call-mu `(queries :queries ,queries))) (defun mu4e--server-remove (docid) - "Remove message with DOCID. -The results are reporter through either (:update ... ) -or (:error) sexp, which are handled my `mu4e-error-func', -respectively." + "Remove message with DOCID. +The results are reported through either (:update ... ) +or (:error) sexps." (mu4e--server-call-mu `(remove :docid ,docid))) -(defun mu4e--server-sent (path) - "Tell the mu server we sent a message at PATH. -If this works, we will receive (:info add :path :docid - :fcc )." - (mu4e--server-call-mu `(sent :path ,path))) - (defun mu4e--server-view (docid-or-msgid &optional mark-as-read) "View a message referred to by DOCID-OR-MSGID. Optionally, if MARK-AS-READ is non-nil, the backend marks the