From 137e800fd075afdca6011772b59aed5f23c92702 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 2 Feb 2023 23:48:44 +0200 Subject: [PATCH] mu4e-query-items: clear cached bookmarks/maildirs When refreshing, so they get properly updated. --- mu4e/mu4e-query-items.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-query-items.el b/mu4e/mu4e-query-items.el index 926a29ba..e8d9eb8a 100644 --- a/mu4e/mu4e-query-items.el +++ b/mu4e/mu4e-query-items.el @@ -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.