diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2023-04-16 09:53:43 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-04-22 22:40:12 +0200 |
commit | f13fbe7a27756c63d85f40c15320664d634f59e2 (patch) | |
tree | 54b385c17026f7cf784c7238fb152ab5b1d526ee | |
parent | 2438d3b74ff9faf598e67f4b6da9324aa98b8b86 (diff) | |
download | aerc-f13fbe7a27756c63d85f40c15320664d634f59e2.tar.gz aerc-f13fbe7a27756c63d85f40c15320664d634f59e2.zip |
imap: update directory on flag ops
All other backends automatically update directory counts by sending a
directory info when a flag operation is performed. Unify the imap
backend to this model by posting a CheckMail action, which requests an
updated status from the server and posts a DirectoryInfo message
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry<robin@jarry.cc>
-rw-r--r-- | worker/imap/flags.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/worker/imap/flags.go b/worker/imap/flags.go index 180bc261..945597df 100644 --- a/worker/imap/flags.go +++ b/worker/imap/flags.go @@ -108,6 +108,9 @@ func (imapw *IMAPWorker) handleStoreOps( emitErr(err) return } + imapw.worker.PostAction(&types.CheckMail{ + Directories: []string{imapw.selected.Name}, + }, nil) imapw.worker.PostMessage( &types.Done{Message: types.RespondTo(msg)}, nil) } |