~sircmpwn/aerc

maildir: Don't add recents to unread and msg count v1 PROPOSED

Galen Abell: 1
 maildir: Don't add recents to unread and msg count

 1 files changed, 1 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/13903/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] maildir: Don't add recents to unread and msg count Export this patch

---
 worker/maildir/worker.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index cf08e70..e8c5ca5 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -162,8 +162,7 @@ func (w *Worker) getDirectoryInfo(name string) *models.DirectoryInfo {
			dirInfo.Recent++
		}
	}
	dirInfo.Unseen += dirInfo.Recent
	dirInfo.Exists = len(uids) + dirInfo.Recent
	dirInfo.Exists = len(uids)
	return dirInfo
}

-- 
2.28.0