Hello,
thank you for the feedback. I tested the library with imap.qq.com, but it will take more time to figure out what the problem is. By now I can only say that it's the server cutting the connection.
I will try fixing this problem next week.
Best regards,
Pavel Azanov