Permalink
Browse files

* mu4e: handle empty contact lists

  • Loading branch information...
djcb committed Mar 9, 2013
1 parent 79c1c8e commit b41e8a603489462507f482b546d2eb124d1eb7a3
Showing with 3 additions and 2 deletions.
  1. +3 −2 mu4e/mu4e-proc.el
View
@@ -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))))))

0 comments on commit b41e8a6

Please sign in to comment.