mu4e-query-item: reset mu4e--last-delta-unread

Fixes #2447.
This commit is contained in:
Dirk-Jan C. Binnema 2023-04-11 18:49:04 +03:00
parent 36f4239bc8
commit fc1f9b5b0a
2 changed files with 3 additions and 3 deletions

View File

@ -38,8 +38,6 @@ now."
:type 'function
:group 'mu4e-notification)
(defvar mu4e--last-delta-unread 0
"Last notified number.")
(defvar mu4e--notification-id nil
"The last notification id, so we can replace it.")

View File

@ -67,6 +67,7 @@ This is used as the baseline to track updates by comparing it to
the latest query-items.")
(defvar mu4e--query-items-baseline-tstamp nil
"Timestamp for when the query-items baseline was updated.")
(defvar mu4e--last-delta-unread 0 "Last notified number.")
(defun mu4e--bookmark-query (bm)
"Get the query string for some bookmark BM."
@ -122,7 +123,8 @@ With RESET-BASELINE, reset the baseline first."
(setq mu4e--query-items-baseline nil
mu4e--query-items-baseline-tstamp nil
mu4e--bookmark-items-cached nil
mu4e--maildir-items-cached nil))
mu4e--maildir-items-cached nil
mu4e--last-delta-unread 0))
(mu4e--server-queries
;; note: we must apply the rewrite function here, since the query does not go
;; through mu4e-search.