From 52224ddbbb9b858f27c5861d98c0d91f60db400b Mon Sep 17 00:00:00 2001 From: DINH Viet Hoa Date: Sat, 23 Mar 2013 13:15:32 -0700 Subject: Simplified implementation of ObjC setter/getter by using a common implementation. Added RFC822 ObjC API. --- tests/main.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/main.mm b/tests/main.mm index 2fb7b55b..7d2f3241 100644 --- a/tests/main.mm +++ b/tests/main.mm @@ -57,9 +57,9 @@ static mailcore::Data * testMessageBuilder() bcc->release(); msg->header()->setSubject(MCSTR("Mon projet d'été")); msg->setHTMLBody(MCSTR("
Hello
")); - msg->addAttachment(mailcore::Attachment::attachmentWithContentOfFile(MCSTR("first-filename"))); - msg->addAttachment(mailcore::Attachment::attachmentWithContentOfFile(MCSTR("second-filename"))); - mailcore::Attachment * attachment = mailcore::Attachment::attachmentWithContentOfFile(MCSTR("third-image-attachment")); + msg->addAttachment(mailcore::Attachment::attachmentWithContentsOfFile(MCSTR("first-filename"))); + msg->addAttachment(mailcore::Attachment::attachmentWithContentsOfFile(MCSTR("second-filename"))); + mailcore::Attachment * attachment = mailcore::Attachment::attachmentWithContentsOfFile(MCSTR("third-image-attachment")); attachment->setContentID(MCSTR("1234")); msg->addRelatedAttachment(attachment); -- cgit v1.2.3