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
1 changed files with 0 additions and 2 deletions
|
@ -240,8 +240,6 @@ func (w *Worker) getDirectoryInfo(name string) *models.DirectoryInfo {
|
||||||
dirInfo.Recent++
|
dirInfo.Recent++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dirInfo.Unseen += dirInfo.Recent
|
|
||||||
dirInfo.Exists += dirInfo.Recent
|
|
||||||
dirInfo.AccurateCounts = true
|
dirInfo.AccurateCounts = true
|
||||||
return dirInfo
|
return dirInfo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue