Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Get Gmail folder structures using IMAP

$
0
0
Hi

I am using Aspose to get Gmail folders using IMAP. I used the following settings:

url: imap.gmail.com
use SSL: true
port: 993

About one or two weeks ago, when I do get folders, I got a result which is visualized in GmailOld.png. Some Gmail folders are prefixed by [Gmail] and shows in [Gmail] subfolder. Although this is different from what I see in google chrome, I do not mind because all the folders are there and no customer complained.

However, today I got a result which is visualized in GmailNew.png. I got an extra "/" root folder, and the [Gmail] folder does not have subfolders. This is unacceptable because there is no way to access some folders like "Drafts". 

could you please let me know what is going on? I am using aspose.email version 2.4.0.0. below is part of my code snippet, where client is a ImapClient instance.

ImapFolderInfoCollection folderInfos = client.ListFolders();

folderInfos.ToList().ForEach(info=>client.ListFolders(info.Name));


Thanks.


Viewing all articles
Browse latest Browse all 1367