When mu4e-context-determine fails, prompt user

This commit is contained in:
Foivos S. Zakkak 2015-12-16 16:32:29 +02:00
parent cf3c52d588
commit 0032ccf73c
1 changed files with 3 additions and 2 deletions

View File

@ -368,8 +368,9 @@ tempfile)."
(set (make-local-variable 'mu4e-compose-parent-message) original-msg)
(put 'mu4e-compose-parent-message 'permanent-local t)
(let ((context (mu4e-context-determine mu4e-compose-parent-message)))
(when context
(mu4e-context-switch (mu4e-context-name context))))
(if context
(mu4e-context-switch (mu4e-context-name context))
(when mu4e-contexts (mu4e-context-switch))))
(run-hooks 'mu4e-compose-pre-hook)
;; this opens (or re-opens) a messages with all the basic headers set.