0
我试图让邮件的正文与MailCore但它总是空的。 我的代码是ObjectiveC MailCore邮件正文
CTCore *folder = [[CTCorefolder alloc] initWithPath:@"INBOX" inAccount:account];
for(CTCoreMessage *msg in [folder messageObjectsFromIndex : 0 toIndex:10]){
if([msg.subject isEqualToString:@"test")]){
// no pb here, it find the good Mail
NSLog(@"Message Body length : %d", msg.body.length);
// here the length is 0 and the body is : ""
}
}
还有其他的方式来获得身体,像“msg.HtmlBody”,但它是空的了。 然而,在Firefox上,我可以看到非空的身体。 我该怎么办?