aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch
diff options
context:
space:
mode:
authorJulian Pidancet <julian.pidancet@oracle.com>2022-10-26 22:29:07 +0200
committerRobin Jarry <robin@jarry.cc>2022-10-27 21:45:31 +0200
commite2f864f2a9902fb0ae1f804fe9fad14790a4003d (patch)
tree4ae2cd48d33cb31f8e5db98133168ef05c2f2834 /worker/notmuch
parentc31a5fc33dbf807a4514722785ebb70b0171c736 (diff)
downloadaerc-e2f864f2a9902fb0ae1f804fe9fad14790a4003d.tar.gz
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 <julian.pidancet@oracle.com> Acked-by: Robin Jarry <robin@jarry.cc> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'worker/notmuch')
-rw-r--r--worker/notmuch/worker.go3
1 files changed, 3 insertions, 0 deletions
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)
}
}