summaryrefslogtreecommitdiff
path: root/worker
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-06-07 15:22:27 -0500
committerRobin Jarry <robin@jarry.cc>2022-06-14 22:12:37 +0200
commitaf0e5879765f3a54b13dc89fdbc1cd6722607bee (patch)
tree8542e3e9afbee317f5a859600cd63af948816f5b /worker
parented005f770c9976877fa4838616a386a2501503f2 (diff)
downloadaerc-af0e5879765f3a54b13dc89fdbc1cd6722607bee.zip
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>
Diffstat (limited to 'worker')
-rw-r--r--worker/maildir/worker.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index 0a51ea7..2b55ca6 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
}