开发者

IMAP GMAIL getting folder list problem

开发者 https://www.devze.com 2023-02-12 08:36 出处:网络
I am working on IMAP and trying to get the list of folders in my Gmail account. I am able to get it working with Yahoo Mail, but not Gmail.

I am working on IMAP and trying to get the list of folders in my Gmail account.

I am able to get it working with Yahoo Mail, but not Gmail.

Here's my code:

byte[] commandBytes = System.Text开发者_C百科.Encoding.ASCII.GetBytes((("$ XLIST \"\" \"*\" \r\n")).ToCharArray());

I had tried LIST as well, but it's also not working. What am I doing wrong?


You cannot have a space between the "*" and the trailing \r\n.

0

精彩评论

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

关注公众号