我正在尝试从收件箱中检索子文件夹和消息,但我只能检索父子文件夹,也尝试使用 PersonalNamespaces[0]
var inbox = client.Inbox;
inbox.Open (FolderAccess.ReadWrite);
Debug.WriteLine ("Total messages: {0}", inbox.Count);
//client.Inbox.Status(StatusItems.Unread);
//Debug.WriteLine("Recent messages: {0}", inbox.Unread);
//Debug.WriteLine("Recent messages: {0}", inbox.FirstUnread);
var personal = client.GetFolder(client.PersonalNamespaces[0]);
foreach (var folder in inbox.GetSubfolders(false))
{
Console.WriteLine("[folder] {0}", folder.Name);
folder.Open(FolderAccess.ReadOnly);