simplify mu4e~docid-msgid-param

It was using an ununed `format', which caused trouble when the msgid
contained format characters.
This commit is contained in:
djcb
2017-12-27 12:51:44 +02:00
parent e50e6bd3d1
commit 0228f35ec5

View File

@ -310,13 +310,11 @@ Start the process if needed."
(t
(error "Something bad happened to the mu server process")))))
(defsubst mu4e~docid-msgid-param (docid-or-msgid)
(defun mu4e~docid-msgid-param (docid-or-msgid)
"Construct a backend parameter based on DOCID-OR-MSGID."
(format
(if (stringp docid-or-msgid)
(concat "msgid:"(mu4e~escape (format "%s" docid-or-msgid)))
"docid:%d")
docid-or-msgid))
(if (stringp docid-or-msgid)
(concat "msgid:" (mu4e~escape docid-or-msgid))
(format "docid:%d" docid-or-msgid)))
(defun mu4e~proc-find (query threads sortfield sortdir maxnum skip-dups
include-related)