From af0e5879765f3a54b13dc89fdbc1cd6722607bee Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 7 Jun 2022 15:22:27 -0500 Subject: 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 Acked-by: Robin Jarry --- worker/maildir/worker.go | 2 -- 1 file changed, 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 } -- cgit v1.2.3