开发者

Gmail IMAP getting folderList making issue

I am phasing issue of the retriving folderlist of the GMAIL using IMAP protocol.

Things is that whenever I am trying to retrive folderlist using LIST command and XLIST, but it will give me error means BAD command so is there any other command to retrive the Folderlist.

My command is like开发者_JAVA百科

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.


LIST (or XLIST on GMail) is the only way to get a folder list. Your LIST command should look something like the following:

A001 LIST "" *

That retrieves all the user's folders. If you just want top-level folders (which in GMail maps to your labels), you'd use

A002 LIST "" %
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜