From 112a80652de31b763d0cf4087b2bba84e3eacf31 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 18 May 2018 08:31:32 +0200 Subject: We're setting the content, not only the head. --- examples/mailtransportresource/mailtransportresource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mailtransportresource/mailtransportresource.cpp b/examples/mailtransportresource/mailtransportresource.cpp index 88391a3..10d94bc 100644 --- a/examples/mailtransportresource/mailtransportresource.cpp +++ b/examples/mailtransportresource/mailtransportresource.cpp @@ -108,7 +108,7 @@ public: emitNotification(Notification::Info, ApplicationDomain::SyncInProgress, "Sending message.", {}, {mail.identifier()}); const auto data = mail.getMimeMessage(); auto msg = KMime::Message::Ptr::create(); - msg->setHead(KMime::CRLFtoLF(data)); + msg->setContent(KMime::CRLFtoLF(data)); msg->parse(); if (settings.testMode) { auto subject = msg->subject(true)->asUnicodeString(); -- cgit v1.2.3