* mu4e: handle empty contact lists
This commit is contained in:
@ -218,7 +218,8 @@ The server output is as follows:
|
|||||||
(plist-get sexp :props)))
|
(plist-get sexp :props)))
|
||||||
|
|
||||||
;; received a contacts message
|
;; received a contacts message
|
||||||
((plist-get sexp :contacts)
|
;; note: we use 'member', to match (:contacts nil)
|
||||||
|
((plist-member sexp :contacts)
|
||||||
(funcall mu4e-contacts-func
|
(funcall mu4e-contacts-func
|
||||||
(plist-get sexp :contacts)))
|
(plist-get sexp :contacts)))
|
||||||
|
|
||||||
@ -256,7 +257,7 @@ The server output is as follows:
|
|||||||
(funcall mu4e-error-func
|
(funcall mu4e-error-func
|
||||||
(plist-get sexp :error)
|
(plist-get sexp :error)
|
||||||
(plist-get sexp :message)))
|
(plist-get sexp :message)))
|
||||||
|
|
||||||
(t (mu4e-message "Unexpected data from server [%S]" sexp)))
|
(t (mu4e-message "Unexpected data from server [%S]" sexp)))
|
||||||
|
|
||||||
(setq sexp (mu4e~proc-eat-sexp-from-buf))))))
|
(setq sexp (mu4e~proc-eat-sexp-from-buf))))))
|
||||||
|
|||||||
Reference in New Issue
Block a user