问题
I would like to know and understand the steps involved in fetching mail from pop3 server using plain c language
回答1:
Steps:
- Connect to the server's port (usually 995) using OpenSSL
- Verify the certificate
- Send regular pop3 commands over the SSL socket you just opened. (LIST, RETR and so on)
- Retrieve the responses
- Close the socket
Or use a library that does all of the above for you
回答2:
Use one of the thousands of libraries that already exist such as libspopc.
回答3:
Use a library such as tinymail, which uses the OpenSSL library.
来源:https://stackoverflow.com/questions/137741/how-to-use-pop3-over-ssl-in-c