Display IMAP server message when writing a command to it

Thank you!

println() did not return any output. But it could be that println() was the better option.

I found this old post from 2019: Connect to secure server using secure(SSL) sockets(plan tcp client). Maybe @universe68 got the model right, that there needs to be a two threads, where one thread listens to the output from the server (in my case IMAP server)?