diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-06-07 15:22:27 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-06-14 22:12:37 +0200 |
commit | af0e5879765f3a54b13dc89fdbc1cd6722607bee (patch) | |
tree | 8542e3e9afbee317f5a859600cd63af948816f5b | |
parent | ed005f770c9976877fa4838616a386a2501503f2 (diff) | |
download | aerc-af0e5879765f3a54b13dc89fdbc1cd6722607bee.tar.gz |
maildir: fix dirinfo.Unseen and Exists counting
The maildir worker was adding Recent messages to the counts of Unseen
and Exists, however these messages were already included in those counts.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | worker/maildir/worker.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go index 0a51ea7f..2b55ca6f 100644 --- a/worker/maildir/worker.go +++ b/worker/maildir/worker.go @@ -240,8 +240,6 @@ func (w *Worker) getDirectoryInfo(name string) *models.DirectoryInfo { dirInfo.Recent++ } } - dirInfo.Unseen += dirInfo.Recent - dirInfo.Exists += dirInfo.Recent dirInfo.AccurateCounts = true return dirInfo } |