I'm trying to connect to the remote POP3/IMAP server using VMime library.
I
created a test case (
http://ix.io/27sz) that demonstrates how I'm
trying to accomplish that and what problems I am encountering. The test
case is for POP3, but I have the exact same issues with IMAP. The test
case uses Gmail (because it's so widespread), but there are also similar
issues with other services. Namely, the connection either times out or I
receive ENOTCONN error, depending on the email provider.
And no, I didn't forget to enable POP3 in the mail settings.