I have a corporate Google Apps account and am trying to access my IMAP folders. As the documentation states, the best practice is to use the CommonFolders class, because Google has localized names for all system folders. Unfortunately I can't get it to work. When using new CommonFolders(imap.GetFolders()) all system folder properties, like CommonFolders.Inbox or CommonFolders.AllMail contain the localized name. And when using these CommomFolders properties to select a specific system folder, I get an error saying the selected folder does not exist:
- [NONEXISTENT] Unknown Mailbox: Postvak IN (Failure)
- [NONEXISTENT] Unknown Mailbox: [gmail]/alle berichten (Failure)
These errors are to be expected, as the folders names should be:
When selecting Inbox, I won;t get an error and the messages in that folder can be retrieved successfully. But when selecting [Gmail]/All Mail, I stil get an error:
- [NONEXISTENT] Unknown Mailbox: [Gmail]/All Mail (Failure)
This is very strange, 'cause this should be the right name for the "All Mail" folder.
I also tried my personal Gmail account, but the same errors occur there. And when changing my Gmail display language from Dutch to English (US), the Inbox folder selection works, but all other folders return the [NONEXISTENT] Unknown Mailbox error.
What could be going wrong here?