This is an extract from the one page text "manual"
=== declarations ===
To use libspopc, you have to include in your main program the libspopc header:
Code:
#include <libspopc.h>
Then, in you main function, declare a popsession* object. You don't need to
know what a popsession consists of, but if you are curious, see libspopc.h.
Code:
popsession* mysession;
=== starting the pop session ===
Since version 0.9, you must call libspopc_init() before starting to use libspopc routines.
Code:
libspopc_init(); /* version >= 0.9 */
Now, to start a pop3 dialog with a pop3 server, use:
Code:
error = popbegin(char* servername, char* user, char* pass, popsession** &mysession);
If no error occurs, popbegin returns a NULL pointer. Else, it returns an error
message and the session is not initialized. When the session is initialized,
popbegin will asks the pop3 server to give him knowledge of how many messages
are stored, and how many bytes, etc... You can know them by reading the popsession
members with provided macros (see <libspopc.h>).
Sorry, should have been just text but forum nagged me to use code tags.