From b41e8a603489462507f482b546d2eb124d1eb7a3 Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 9 Mar 2013 07:38:07 -0800 Subject: [PATCH] * mu4e: handle empty contact lists --- mu4e/mu4e-proc.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-proc.el b/mu4e/mu4e-proc.el index 14c30d62..145e718a 100644 --- a/mu4e/mu4e-proc.el +++ b/mu4e/mu4e-proc.el @@ -218,7 +218,8 @@ The server output is as follows: (plist-get sexp :props))) ;; received a contacts message - ((plist-get sexp :contacts) + ;; note: we use 'member', to match (:contacts nil) + ((plist-member sexp :contacts) (funcall mu4e-contacts-func (plist-get sexp :contacts))) @@ -256,7 +257,7 @@ The server output is as follows: (funcall mu4e-error-func (plist-get sexp :error) (plist-get sexp :message))) - + (t (mu4e-message "Unexpected data from server [%S]" sexp))) (setq sexp (mu4e~proc-eat-sexp-from-buf))))))