feat(mail): Refresh unread mail count more often

Decreases the interval from 90 seconds to 30 seconds.
This commit is contained in:
Vincent Ambo 2018-11-13 15:33:10 +01:00 committed by Vincent Ambo
parent dd5c880138
commit 4a53a084a5

View file

@ -75,7 +75,7 @@
The offlineimap-timer runs every 2 minutes, so it does not make The offlineimap-timer runs every 2 minutes, so it does not make
sense to refresh this much more often than that." sense to refresh this much more often than that."
(when (> (- (float-time) *last-notmuch-count-redraw*) 90) (when (> (- (float-time) *last-notmuch-count-redraw*) 30)
(setq *last-notmuch-count-redraw* (float-time)) (setq *last-notmuch-count-redraw* (float-time))
(let* ((inbox-unread (notmuch-saved-search-count "tag:inbox and tag:unread")) (let* ((inbox-unread (notmuch-saved-search-count "tag:inbox and tag:unread"))
(devel-unread (notmuch-saved-search-count "tag:aprila-dev and tag:unread")) (devel-unread (notmuch-saved-search-count "tag:aprila-dev and tag:unread"))