diff options
author | Julian Pidancet <julian.pidancet@oracle.com> | 2022-10-26 22:29:07 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-10-27 21:45:31 +0200 |
commit | e2f864f2a9902fb0ae1f804fe9fad14790a4003d (patch) | |
tree | 4ae2cd48d33cb31f8e5db98133168ef05c2f2834 | |
parent | c31a5fc33dbf807a4514722785ebb70b0171c736 (diff) | |
download | aerc-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>
-rw-r--r-- | worker/notmuch/worker.go | 3 |
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) } } |