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>
This commit is contained in:
Tim Culverhouse 2022-06-07 15:22:27 -05:00 committed by Robin Jarry
parent ed005f770c
commit af0e587976
1 changed files with 0 additions and 2 deletions

View File

@ -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
}