这些天,我正在使用mailcore工作一个邮件客户端。每次都成功连接到imap服务器,但我无法获取INBOX列表。关键代码
CTCoreFolder *inbox = [account folderWithPath:@"INBOX"];
NSArray *messageList = [inbox messagesFromSequenceNumber :1 to:0 withFetchAttributes:CTFetchAttrEnvelope];
NSLog(@"%d",[messageList count]);
Evertime,输出为0;我这样做有错吗?