5 Commits
Author SHA1 Message Date
Léon Simmons 79c4237b5c docs: fix typo in AuthenticationStateMachine comment (#832)
authentiction → authentication
2026-07-03 16:33:52 +02:00
Daniel Eggert efc0bfe244 Allow receiving untagged responses while appending (#799) 2025-06-11 13:52:48 -04:00
Daniel Eggert c041371b50 Fix for receiving untagged response during SASL auth (#743) 2023-06-27 18:03:12 +02:00
David Evans 59a57ee70b New client state machine (#610)
The client state machine has now been fully rewritten, and encapsulates the miniature state machines implemented in previous PRs.

I've extracted the state machine from IMAPClientHandler and moved it into ClientStateMachine, hence all the code deletion.

The state machine receives a command, response, or continuation request from the IMAPClientHandler and returns an array of Chunk/EventLoopPromise pairs that the client handler should then write to the network.

Also we didn't previously queue Append commands like we did for others, however it's now become apparent that all commands types should be queued, so we do that now.

A lot of tests have been added to make sure everything works.

Note that a lot of sendCommand tests have been deleted as we now precondition on user errors instead of throwing.
2021-09-10 13:45:11 +01:00
David Evans d49bbc1968 New state machine authentication flow (#587)
Add support for authentication to the new client state machine, with a typical workflow test, and a test to show that attempting to send another command while authenticating will result in an error.
2021-07-20 13:30:40 +01:00