From e2f864f2a9902fb0ae1f804fe9fad14790a4003d Mon Sep 17 00:00:00 2001 From: Julian Pidancet Date: Wed, 26 Oct 2022 22:29:07 +0200 Subject: notmuch: emit a DirectoryInfo message upon check-mail completion Send a DirectoryInfo message when check-mail completes to re-fetch directory content in case it changed. Signed-off-by: Julian Pidancet Acked-by: Robin Jarry Acked-by: Tim Culverhouse --- worker/notmuch/worker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go index b592e947..d4f0c912 100644 --- a/worker/notmuch/worker.go +++ b/worker/notmuch/worker.go @@ -702,6 +702,9 @@ func (w *worker) handleCheckMail(msg *types.CheckMail) { if err != nil { w.err(msg, fmt.Errorf("checkmail: error running command: %w", err)) } else { + w.w.PostMessage(&types.DirectoryInfo{ + Info: w.getDirectoryInfo(w.currentQueryName, w.query), + }, nil) w.done(msg) } } -- cgit