Hi,
I'm trying to use the IMAP APIs for access a GMail account. There's been one problem after another. I have spent approximately four hours today searching your forums, google and Aspose documetation trying to figure out how to achieve the follow.
- Connect to Gmail account
I was able to find information on this item and am able to connect to the account.
- Get a complete list of the folders.
I found information on this item as well; but it's incomplete. Although it shows how to get a list of folders the information does not discuss the unique aspects the [Gmail] folder and its sub folders. Nor does it discuss the fact that the count properties of the ImapFolderInformation object are not poplated until you call client.SelectFolder. Which once you do so causes a different exception because only some of the folders are seletable.
- Foreach folder get the totatl number of messages, total new (i.e. unread) messages
Related to the item above--if you output the results of client.ListFolders() every folder shows zero for: TotalMessageCount, NewMessageCount, RecentMessageCount.
If i call client.SelectFolder, TotalMessageCount is populated with a value (unverified but populated); but NewMessageCount and RecentMessageCount are still zero. I event sent a test message to the new mail account and still the numbers were unaffected.
Any insight will be greatly appriciated.