diff options
author | Koni Marti <koni.marti@gmail.com> | 2024-02-25 12:43:55 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-26 09:26:45 +0100 |
commit | d8d5fc8d31f358c6425dfa18a9f8d2767bc6df40 (patch) | |
tree | fad404f8451c9d44cb8e9ac61fae2b70817bd2fc /commands/account/check-mail.go | |
parent | 83c3a4051b146651c9e56924bf8e4a9c8b01c5a8 (diff) | |
download | aerc-d8d5fc8d31f358c6425dfa18a9f8d2767bc6df40.tar.gz |
imap: drain updates channel when deleting messages
Drain the buffered updates channel when deleting messages to prevent a
backend freeze. Unilateral update messages from the IMAP server can fill
up the buffered channel if not handled during a large operation (more
than ~50 messages).
Link: https://lists.sr.ht/~rjarry/aerc-discuss/%3CCZCPBTWI3PIW.T8MWNCBG7FGL%40disroot.org%3E
Changelog-fixed: Prevent a freeze for large-scale deletions with IMAP.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Tested-by: Jeremy Baxter <jtbx@disroot.org>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/account/check-mail.go')
0 files changed, 0 insertions, 0 deletions