mu4e: don't loop mu4e-update-index when index is empty

Fixes: issue #2240.
This commit is contained in:
Dirk-Jan C. Binnema 2022-06-05 12:08:35 +03:00
parent 3d3fd1aa7a
commit f16224c33a
1 changed files with 1 additions and 2 deletions

View File

@ -117,8 +117,7 @@ Invoke FUNC if non-nil."
(mu4e--check-requirements)
(when func (funcall func))
(when (zerop doccount)
(mu4e-message "Store is empty; (re)indexing. This may take a while.") ;
(mu4e-update-index))
(mu4e-message "Store is empty; try indexing (M-x mu4e-update-index)."))
(when (and mu4e-update-interval (null mu4e--update-timer))
(setq mu4e--update-timer
(run-at-time 0 mu4e-update-interval