Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: Cannot retrieve Folder when mailbox has subfolders

$
0
0
I have a simple setup with a mailbox with 3 top level folders. When using this library I can connect to them perfectly with an ImapClient.

However, as soon as I add a subfolder, to the INBOX, the ImapClient.Folders (or GetFolders()), will not return anymore. My program hangs on that call. I waited for over a minute for it to return.

Is this a known bug or am I doing something wrong?

Code snippet:
client = new ImapClient(server, port);
client.Connection();
client.LogIn(login, password);
foreach (Folder folder in client.Folders)
{
       nodes.Add(new TreeNode(folder.Name));
}

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>