When I call the following code, it only returns the "Inbox", instead of the full folder list.
var md = new MailData();
var folders = _imap.GetFolderList("", ImapFolderListMode.All, true);
md.MessageCount = 0;
md.UnseenMessageCountInFolder = new Dictionary<string, int>();
md.MessagesInFolder = new Dictionary<string, List<MailMessage>>();
foreach (ImapFolder folder in folders)
var list = GetMessageList(folder.Name);
var count = GetUnseenMessageCount(folder.Name);
md.MessageCount += GetMessageCount(folder.Name);
Is this some bug in the code, or am I doing something wrong?
A few days ago this code returned all folders, and suddenly it only returned the "Inbox". In the meanwhile I didn't change anything in the code where I call that function.
Sidenote: MailData is a custom class for storing the recieved data.
I don't know which part of the log is relevant to you, so here is the log from when the function above was called:
The log ain't correct: it picks the other webservice(the one for POP).
Note: I was using imap.gmx.com as login server