mu4e: get maildirs from server

We were determining the list of maildirs using, but his is rather *slow*.
So instead, get it from the server, through a "data" call.
This commit is contained in:
Dirk-Jan C. Binnema
2023-08-13 09:46:45 +03:00
parent a16d288c70
commit c554e5194a
4 changed files with 23 additions and 44 deletions

View File

@ -148,8 +148,10 @@ Otherwise, check requirements, then start mu4e. When successful, invoke
(add-hook 'mu4e-query-items-updated-hook #'mu4e--main-redraw)
(mu4e--query-items-refresh 'reset-baseline)
(mu4e--server-ping)
;; ask for the maildir-list
(mu4e--server-data 'maildirs)
;; maybe request the list of contacts, automatically refreshed after
;; reindexing
;; re-indexing
(unless mu4e--contacts-set
(mu4e--request-contacts-maybe)))