How to send non-standard IMSP command [ ID ("GUID" "1") ] of yahoo mailsystem

Jul 30, 2014 at 10:52 AM
Edited Jul 30, 2014 at 10:54 AM
I've read some threads about yahoo's IMAP connection,I got this:
" It require a specific, non-standard IMAP command to be sent before login is done,
namely: “ID (“GUID” “1″)”. "

but the following code doesn't work:
Client.ConnectSsl("imap.mail.yahoo.com", 993);
Client.Command(@"ID (""GUID"" ""1"")");   //Is it wrong??
Client.LoginFast(username, password);
Mailbox mails = Client.SelectMailbox("Inbox");   //Program hangs here...
....
What 's the problem?

Any help would be really appreciated.
Jul 30, 2014 at 4:30 PM
You should not need to send the ID command in order to login, and in fact, the ID command is only meant as an optional command in order to identify the client to the server for debugging (and bug tracking) purposes.

I am able to connect & login fine to Yahoo! Mail w/o needing to issue an ID command using MailKit, so it shouldn't be needed when using MailSystem.NET either.
Jul 31, 2014 at 1:21 AM
thanks for your reply. I will try it later

I am working on an application that search mails from several mail server, using mailsystem.net.
Everything goes well for Gmail and Hotmail, but not with Yahoo.
With Yahoo case, the thread hangs when it comes to SelectMailBox, Search ...
so i got source code of some methods from the library and made revised copy for Yahoo,
then it works.......

thanks again!!
Aug 1, 2014 at 6:07 PM
What was the cause of the hang?