diff --git a/mu4e/mu4e-notification.el b/mu4e/mu4e-notification.el index c17567ca..d0a0c8a0 100644 --- a/mu4e/mu4e-notification.el +++ b/mu4e/mu4e-notification.el @@ -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.") diff --git a/mu4e/mu4e-query-items.el b/mu4e/mu4e-query-items.el index ef0ff5b8..745b91b8 100644 --- a/mu4e/mu4e-query-items.el +++ b/mu4e/mu4e-query-items.el @@ -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.