diff options
-rw-r--r-- | worker/maildir/worker.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go index 2f96e6ff..34d73f81 100644 --- a/worker/maildir/worker.go +++ b/worker/maildir/worker.go @@ -136,7 +136,6 @@ func (w *Worker) getDirectoryInfo(name string) *models.DirectoryInfo { w.worker.Logger.Printf("could not get uids: %v", err) return dirInfo } - dirInfo.Exists = len(uids) recent, err := dir.UnseenCount() if err != nil { @@ -166,6 +165,7 @@ func (w *Worker) getDirectoryInfo(name string) *models.DirectoryInfo { } } dirInfo.Unseen += dirInfo.Recent + dirInfo.Exists = len(uids) + recent return dirInfo } |