IMAP GMAIL getting folder list problem
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . 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.Encoding.ASCII.GetBytes((("$ XLIST \"\" \"*\" \r\n")).ToCharArray()); I had tried LIST as well, but it's also not working. What am I doing wrong? 回答1: You cannot have a