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.