diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2023-06-20 11:07:11 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-20 23:16:25 +0200 |
commit | 08a0b5cbe56a8b64759282132e3dc304d24e4e7a (patch) | |
tree | 3c6ab813736b1793ba3e08ff62634af7a1432a9e /worker/imap/list.go | |
parent | 33dbaebb71dcd7a10242740619b47a80818d7fa4 (diff) | |
download | aerc-08a0b5cbe56a8b64759282132e3dc304d24e4e7a.tar.gz |
imap: implement cancellation of opening dir and listing contents
Check for a cancelled context when opening a directory, and before+after
fetching directory contents/threads. Clean up the nesting of
fetchDirectoryContents by using what we already know about server
capabilities and using a switch statement.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap/list.go')
0 files changed, 0 insertions, 0 deletions