aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2013-07-11 19:37:58 -0700
committerGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2013-07-11 19:37:58 -0700
commit3b37fa0450e691af93dac0621a0bc964cffa0c2b (patch)
tree43a0961e2153533ee0e6dee0bc45d4ae2539cbb8 /tests
parentc6a4ffd8dc6a3f9e4a0c385a284a155081b7df79 (diff)
parent6594f1527f9392ed74201d726b0c6aa6897e372b (diff)
Merge pull request #161 from thusfresh/CustomHeaders
Allows for custom headers to be set for message builder.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-all.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-all.mm b/tests/test-all.mm
index c58e5888..552ffe8e 100644
--- a/tests/test-all.mm
+++ b/tests/test-all.mm
@@ -55,6 +55,8 @@ static mailcore::Data * testMessageBuilder()
msg->header()->setBcc(bcc);
to->release();
bcc->release();
+ MCAssert(msg->header()->allExtraHeadersNames()->count() == 0);
+ msg->header()->addHeader(MCSTR("X-Custom-Header"), MCSTR("Custom Header Value"));
msg->header()->setSubject(MCSTR("Mon projet d'été"));
msg->setHTMLBody(MCSTR("<div>Hello <img src=\"cid:1234\"></div>"));
msg->addAttachment(mailcore::Attachment::attachmentWithContentsOfFile(MCSTR("first-filename")));