imap4X = New ImapX.ImapClient
imap4X.Host = "imap.mail.yahoo.com"
imap4X.Port = 993
imap4X.UseSsl = True
imap4X.Connect()
imap4X.Login(gmail user id,passwd)
MsgBox(imap4X.Folders("Inbox").Messages.Count)
It always shows message count as 0.I have tried all the folders but it shows 0 only..