mu/mu4e: handle personal addresses as server cmdline params

So we don't need to pass them to index; they can't change anyway.
This commit is contained in:
Dirk-Jan C. Binnema
2020-02-04 01:03:18 +02:00
parent 38779cfade
commit 029a4c245e
3 changed files with 10 additions and 23 deletions

View File

@ -255,7 +255,9 @@ Start the process if needed."
(let* ((process-connection-type nil) ;; use a pipe
(args '("server"))
(args (append args (when mu4e-mu-home (list (concat "--muhome=" mu4e-mu-home)))))
(args (append args (list (concat "--maildir=" mu4e-maildir)))))
(args (append args (mapcar (lambda(addr)
(format "--my-address=%s" addr))
mu4e-user-mail-address-list))))
(setq mu4e~proc-buf "")
(setq mu4e~proc-process (apply 'start-process
mu4e~proc-name mu4e~proc-name