aerc/worker
Tim Culverhouse 8b6f9719a8 dirlist: update RUE counts for imap/maildir on move|copy|delete|archive
When moving/copying/deleting/archiving a message in imap, the RUE counts
displayed in the dirlist would not update properly. Maildir has (had) an
implementation that recounts the entire directory and updates the
DirectoryInfo after one of these actions.

This patch implements a more efficient method of updating, and also
enables it to apply to IMAP without any additional requests. Upon
completion of the action, the counts are manually updated with the count
of messages in the action and recent and/or unseen states of those
messages. This is more efficient for maildir, because we aren't counting
everything in the store. For IMAP, we get the updates for free because
we are only performing the update after confirmation from the server
that the action has happened.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-06-07 16:19:23 +02:00
..
handlers go.mod: change base git url 2021-11-05 10:21:45 +01:00
imap dirlist: update RUE counts for imap/maildir on move|copy|delete|archive 2022-06-07 16:19:23 +02:00
lib pgp: ensure CRLF line endings in pgpmail reader 2022-04-25 12:31:33 +02:00
maildir dirlist: update RUE counts for imap/maildir on move|copy|delete|archive 2022-06-07 16:19:23 +02:00
notmuch feat: add background mail polling option for all workers 2022-05-31 14:32:51 +02:00
types dirlist: update RUE counts for imap/maildir on move|copy|delete|archive 2022-06-07 16:19:23 +02:00
handler_notmuch.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
worker.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
worker_enabled.go go.mod: change base git url 2021-11-05 10:21:45 +01:00