Hello,
I’m trying to connect to an IMAP server for Yahoo using Aspose.Email 17.9.0.0 The sample code is shown below:
ImapClient client = new ImapClient(“[imap.mail.yahoo.com ](http://imap.mail.yahoo.com/)”, 993, "someuser@yahoo.com", “password”);
client.SecurityOptions = SecurityOptions.SSLImplicit;
var list = client.ListFolders();
It hangs on the last line until it eventually times out. With an older version of Aspose I was able to list the folders but it failed at another point. the account that is failing for me can be connected to with no issue using Outlook as the IMAP client.
The logging reveals the following:
Imap server[1|2017-09-22 8:33:42 AM]: * OK [CAPABILITY IMAP4rev1 ID MOVE NAMESPACE X-ID-ACLID UIDPLUS LITERAL+ XYMHIGHESTMODSEQ CHILDREN SASL-IR AUTH=PLAIN AUTH=LOGIN AUTH=XYMLOGIN AUTH=XYMPKI AUTH=XYMCOOKIEB64 AUTH=XOAUTH2 AUTH=OAUTHBEARER] IMAP4rev1 Hello
Imap server[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap client[1|2017-09-22 8:33:42 AM]: AE_1_1_0000 CAPABILITY
Imap client[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap server[1|2017-09-22 8:33:42 AM]: *
2017-09-22 8:33:42 AM
Imap server[1|2017-09-22 8:33:42 AM]: CAPABILITY IMAP4rev1 ID MOVE NAMESPACE X-ID-ACLID UIDPLUS LITERAL+ XYMHIGHESTMODSEQ CHILDREN SASL-IR AUTH=PLAIN AUTH=LOGIN AUTH=XYMLOGIN AUTH=XYMPKI AUTH=XYMCOOKIEB64 AUTH=XOAUTH2 AUTH=OAUTHBEARER
Imap server[1|2017-09-22 8:33:42 AM]: AE_1_1_0000 OK CAPABILITY completed
Imap server[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap client[1|2017-09-22 8:33:42 AM]: AE_1_1_0001 AUTHENTICATE LOGIN
Imap client[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap server[1|2017-09-22 8:33:42 AM]: +
2017-09-22 8:33:42 AM
Imap server[1|2017-09-22 8:33:42 AM]:
Imap server[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap client[1|2017-09-22 8:33:42 AM]:
Imap client[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap server[1|2017-09-22 8:33:42 AM]: +
2017-09-22 8:33:42 AM
Imap server[1|2017-09-22 8:33:42 AM]: eyJzdGF0dXMiOiJpbnZhbGlkX2NyZWRlbnRpYWxzIiwic2NoZW1lIjoiYmFzaWMiLCJzY29wZSI6Imh0dHBzOi8vbWFpbC55YWhvby5jb20vIn0=
Imap server[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap client[1|2017-09-22 8:33:42 AM]: AE_1_1_0002 CAPABILITY
Imap client[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap server[1|2017-09-22 8:33:42 AM]: A
2017-09-22 8:33:42 AM
Imap server[1|2017-09-22 8:33:42 AM]: E_1_1_0001 BAD [AUTHENTICATIONFAILED] AUTHENTICATE Invalid credentials
Imap server[1|2017-09-22 8:33:42 AM]:
2017-09-22 8:33:42 AM
Imap client[1|2017-09-22 8:37:02 AM]: Connection failure. Timeout ‘200000’ has been reached.
2017-09-22 8:37:02 AM
Thanks,
Andy