mu/mu4e: pass muhome to server (and provide some better error info)

This commit is contained in:
Dirk-Jan C. Binnema
2020-02-10 18:07:54 +02:00
parent f50360f94e
commit d90d2ce8ef
2 changed files with 13 additions and 5 deletions

View File

@ -252,7 +252,8 @@ Start the process if needed."
(unless (file-executable-p mu4e-mu-binary)
(mu4e-error (format "`mu4e-mu-binary' (%S) not found" mu4e-mu-binary)))
(let* ((process-connection-type nil) ;; use a pipe
(args '("server")))
(args (when mu4e-mu-home `(,(format"--muhome=%s" mu4e-mu-home))))
(args (cons "server" args)))
(setq mu4e~proc-buf "")
(setq mu4e~proc-process (apply 'start-process
mu4e~proc-name mu4e~proc-name