The response to IMAP LIST command may have the mailbox name quoted or not. When the mailbox name is parsed, the quotes should be removed.
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "[Gmail]"
* LIST (\All \HasNoChildren) "/" "[Gmail]/All Mail"
* LIST (\Drafts \HasNoChildren) "/" "[Gmail]/Drafts"
* LIST (\Important \HasNoChildren) "/" "[Gmail]/Important"
* LIST (\Sent \HasNoChildren) "/" "[Gmail]/Sent Mail"
* LIST (\HasNoChildren \Junk) "/" "[Gmail]/Spam"
* LIST (\Flagged \HasNoChildren) "/" "[Gmail]/Starred"
* LIST (\Trash \HasNoChildren) "/" "[Gmail]/Trash"
([OtherAttr "HasNoChildren"],"\"INBOX\"")
([Noselect,OtherAttr "HasChildren"],"\"[Gmail]\"")
([OtherAttr "All",OtherAttr "HasNoChildren"],"\"[Gmail]/All Mail\"")
([OtherAttr "Drafts",OtherAttr "HasNoChildren"],"\"[Gmail]/Drafts\"")
([OtherAttr "Important",OtherAttr "HasNoChildren"],"\"[Gmail]/Important\"")
([OtherAttr "Sent",OtherAttr "HasNoChildren"],"\"[Gmail]/Sent Mail\"")
([OtherAttr "HasNoChildren",OtherAttr "Junk"],"\"[Gmail]/Spam\"")
([OtherAttr "Flagged",OtherAttr "HasNoChildren"],"\"[Gmail]/Starred\"")
([OtherAttr "Trash",OtherAttr "HasNoChildren"],"\"[Gmail]/Trash\"")