Thank you, doublemax for testing this example.doublemax wrote:The following code worked for me. For simplicity i put the receiving code into the OnAbout() method of the minimal sample.
Using your code, I get no output at all.
Again, using wisreshark, I see the following conversation on the 'wire' - after substituting my credentials and pop server address.
Code: Select all
+OK POP3 ready
CAPA
+OK Capability list follows
EXPIRE 31 USER
TOP
UIDL
USER
XOIP
SASL GSSAPI
STLS
.
AUTH GSSAPI
+
Using these same credentials I can log in via telnet and get the expected responses.
"AUTH GSSAPI" is what the example sends to the pop server, and I suppose I could (and would have to) investigate what that implies, but as afar as I can tell, it is NOT pop3 'speak';
This result is exactly what I got before and going back to my old code, yours adds a few more details, such as
Code: Select all
curl_easy_setopt(curl, CURLOPT_FILE, this);
Code: Select all
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_error_buf);
//curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 5000);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
Yes I am aware of this issue and the next part of my project is to investigate IMAP, which is the alternative my ISP offers.doublemax wrote: Also be aware that many email providers don't allow unencrypted transfers any more. You need to connect through SSL/TLS for them.