application hanging when trying to connect to yahoo

Topics: Help requests
Dec 12, 2013 at 7:53 PM
Hi,

I am using IMapx version 2.0.0.13 library , which is currently the latest one in the website. We are using this library to read emails from gmail and yahoo mail. The library works well all the time with gmail, but with yahoo it works some times and some times go to infinite loop when I call the connect method.
The code is shown below

ImapClient client = new ImapClient("imap.mail.yahoo.com", 993, true, true);
            client.Connect();
            client.Login("username", "password");
When I debug the code I found that it is the second line (client.Connect()) where the application is going to infinite loop.

Please help me in resolving this issue.

Thanks & Regards
Srihari
Coordinator
Dec 12, 2013 at 8:22 PM
Edited Dec 13, 2013 at 8:30 AM
Hi Srihari,

can you try set client.IsDebug to true and post here the debug output? It should contain all answers from the server. I will also try to test it myself to see when the problem exactly occurs.

UPDATE: I have tested the issue with my yahoo account, and couldn't simulate the situation. What you also can try is using latest source code from the repository. (See last posts in this thread: https://imapx.codeplex.com/discussions/465178)

Best regards,

Pavel