Click here to Skip to main content
15,947,389 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello guys,

I am facing issue of the retrieving folder list of the GMAIL using IMAP protocol.

Thing is that I am trying to retrieve folder list using LIST command and XLIST, but it will give me error means BAD command so is there any other command to retrieve the Folder list.

My command is like .

byte[] commandBytes = System.Text.Encoding.ASCII.GetBytes((("$ XLIST \"\" \"*\" \r\n")).ToCharArray());


and also pass the LIST Command but still I am not able to get folder list it say BAD Command not to parse.

Thanks...!!
Posted
Updated 18-Feb-11 15:05pm
v3
Comments
Abdul Quader Mamun 18-Feb-11 21:05pm    
Edited spelling.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900