mu4e-query-items: clear cached bookmarks/maildirs

When refreshing, so they get properly updated.
This commit is contained in:
Dirk-Jan C. Binnema 2023-02-02 23:48:44 +02:00
parent 66d20d04f5
commit 137e800fd0
1 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,9 @@ If ITEMS does not yet have a favorite item, pick the first."
With RESET-BASELINE, reset the baseline first."
(when reset-baseline
(setq mu4e--query-items-baseline nil
mu4e--query-items-baseline-tstamp nil))
mu4e--query-items-baseline-tstamp nil
mu4e--bookmark-items-cached nil
mu4e--maildir-items-cached nil))
(mu4e--server-queries
;; note: we must apply the rewrite function here, since the query does not go
;; through mu4e-search.