mirror of https://github.com/djcb/mu.git
mu4e: don't loop mu4e-update-index when index is empty
Fixes: issue #2240.
This commit is contained in:
parent
3d3fd1aa7a
commit
f16224c33a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue