apple / swift-nio-imap

A Swift project that provides an implementation of the IMAP4rev1 protocol, built upon SwiftNIO.
Apache License 2.0
95 stars 13 forks source link

Example use of SwiftNIO ChannelHandlers #750

Open bensyverson opened 7 months ago

bensyverson commented 7 months ago

Expected behavior

This is an exciting library! It would be fantastic to have a slightly more elaborate code sample for the SwiftNIO ChannelHandlers, which I assume would be the most common API for users of swift-nio-imap.

Currently, the README includes a short login example using IMAPClientHandler, but it's not clear from the code how you'd handle an incorrect login for example. Being new to SwiftNIO, I'm not even sure where the response ends up. It would be great to have a slightly more elaborate example with a call and response for both Client and Server, to demonstrate the basic usage. Perhaps these are outside the scope of a README, and could end up in /examples.

FelixSubject211 commented 1 month ago

Do you know how I can handle the login Response?