tags:

views:

461

answers:

3

I would like to know and understand the steps involved in fetching mail from pop3 server using plain c language

A: 

Use one of the thousands of libraries that already exist such as libspopc.

Joseph Daigle
+2  A: 

Steps:

  1. Connect to the server's port (usually 995) using OpenSSL
  2. Verify the certificate
  3. Send regular pop3 commands over the SSL socket you just opened. (LIST, RETR and so on)
  4. Retrieve the responses
  5. Close the socket

Or use a library that does all of the above for you

Vinko Vrsalovic
Thanks Vinko Vrsalovic
doesn't ssl imply asyncronous certificate ?
Frederic Morin
A: 

Use a library such as tinymail, which uses the OpenSSL library.

John Millikin