Connection times out connecting to Yahoo Imap server

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

@andy.kwak,

We regret the inconvenience caused to you. Could you please share which older version of the API used to work for you? This will help us investigate the issue from regression perspective as well.

I was previously using 17.1.0.0 and while it was able to list folders, it had a different exception when listing messages.

@andy.kwak,

Thank you for sharing additional information. We have logged it as EMAILNET-38845 for further consideration by our Product team. We’ll get back to you once there is some information or a fix version available in this regard.

I do not know if this will help but we are seeing the same problem. The problem seems to have started with the upgrade to 17.4

@PPLAspose,

The issue has already been fixed and will be part of upcoming version of Aspose.Email for .NET 17.10. We’ll update you here once the fix version is available for download.

@PPLAspose,

This issue has been fixed in the latest release of Aspose.Email for .NET 17.10 which is available for download now.

hi i m using aspose email for java jar 20.2 and i m getting this exception

Caused by: ImapException: * BYE IMAP4rev1 Server logging out when i adding file in yahoo mail the file contains 17404 mails