aerc/worker/maildir
Robin Jarry 622802d3a5 maildir: defer the count of recent messages
Since commit 01c96e78df ("Update DirectoryInfo handling for maildir"),
flags are checked for every message of a folder when entering it.
Iterating over all messages of a folder takes a long time for large
collections of emails.

Only count the number of messages and state that the directory info
counts are not accurate. Defer the parsing of message flags in
a goroutine to have a more responsive UI.

Fixes: https://todo.sr.ht/~rjarry/aerc/16
Suggested-by: Koni Marti <koni.marti@gmail.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
2022-01-30 20:49:30 +01:00
..
container.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
message.go maildir,notmuch: avoid leaking open files 2022-01-19 20:18:00 +01:00
search.go maildir,notmuch: avoid leaking open files 2022-01-19 20:18:00 +01:00
worker.go maildir: defer the count of recent messages 2022-01-30 20:49:30 +01:00