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:
parent
ed005f770c
commit
af0e587976
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue