From 9bf1670aa1f484660519ea66889057c6f2e5a71b Mon Sep 17 00:00:00 2001 From: djcb Date: Wed, 13 Jun 2018 18:19:13 +0300 Subject: [PATCH] mu4e: work-around for missing contacts --- mu4e/mu4e-compose.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mu4e/mu4e-compose.el b/mu4e/mu4e-compose.el index a1e1f8b0..7fea7250 100644 --- a/mu4e/mu4e-compose.el +++ b/mu4e/mu4e-compose.el @@ -288,9 +288,9 @@ If needed, set the Fcc header, and register the handler function." (lambda (file) (setq message-fcc-handler-function old-handler) ;; reset the fcc handler (let ((mdir-path (concat mu4e-maildir maildir))) - ;; Create the full maildir structure for the sent folder if it doesn't exist. `mu4e~proc-mkdir` - ;; runs asynchronously but no matter whether it runs before or after `write-file`, the sent - ;; maildir ends up in the correct state. + ;; Create the full maildir structure for the sent folder if it doesn't exist. + ;; `mu4e~proc-mkdir` runs asynchronously but no matter whether it runs before or after + ;; `write-file`, the sent maildir ends up in the correct state. (unless (file-exists-p mdir-path) (mu4e~proc-mkdir mdir-path))) (write-file file) ;; writing maildirs files is easy @@ -465,8 +465,9 @@ buffers; lets remap its faces so it uses the ones for mu4e." (setq default-directory (expand-file-name "~/")) ;; offer completion for e-mail addresses (when mu4e-compose-complete-addresses + (unless mu4e~contacts ;; work-around for https://github.com/djcb/mu/issues/1016 + (mu4e~request-contacts)) (mu4e~compose-setup-completion)) - (when mu4e-compose-format-flowed (turn-off-auto-fill) (setq truncate-lines nil