My code
ImapClient imapSource = new ImapClient();
imapSource.Port = 993;
imapSource.Host = xxxx;
imapSource.Username = xxx;
imapSource.Password = xxx
ImapFolderInfoCollection folderInfoColl = imapSource.ListFolders();
foreach (ImapFolderInfo folderInfo in folderInfoColl)
{
ImapFolderInfo folderInfoStatus = imapSource.GetFolderInfo(folderInfo.Name);
Console.WriteLine("Total Messages: " + folderInfoStatus.TotalMessageCount);
imapSource.SelectFolder(folderInfo.Name);
ImapMessageInfoCollection msgInfoColl = imapSource.ListMessages(false);
Console.WriteLine("Total Messages: " + msgsColl.Count);
}
The first information “folderInfoStatus.TotalMessageCount” return the correct number of messages, but the second information “msgsColl.Count” is always 0 (also if I try for another folder)
I try against OBM server ([https://www.obm.org ](https://www.obm.org/))
If I try against gmail, I haven’t this kind of problem
What is the problem ? How can I solve it ?
Regards
Gilles