diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-18 08:31:32 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-18 08:31:32 +0200 |
commit | 112a80652de31b763d0cf4087b2bba84e3eacf31 (patch) | |
tree | b5132e8a96dd71210d96337a21a21c8474d63288 /examples | |
parent | d23f414fe907fd382c387f9e6c627c217e68440f (diff) | |
download | sink-112a80652de31b763d0cf4087b2bba84e3eacf31.tar.gz sink-112a80652de31b763d0cf4087b2bba84e3eacf31.zip |
We're setting the content, not only the head.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/mailtransportresource/mailtransportresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
108 | emitNotification(Notification::Info, ApplicationDomain::SyncInProgress, "Sending message.", {}, {mail.identifier()}); | 108 | emitNotification(Notification::Info, ApplicationDomain::SyncInProgress, "Sending message.", {}, {mail.identifier()}); |
109 | const auto data = mail.getMimeMessage(); | 109 | const auto data = mail.getMimeMessage(); |
110 | auto msg = KMime::Message::Ptr::create(); | 110 | auto msg = KMime::Message::Ptr::create(); |
111 | msg->setHead(KMime::CRLFtoLF(data)); | 111 | msg->setContent(KMime::CRLFtoLF(data)); |
112 | msg->parse(); | 112 | msg->parse(); |
113 | if (settings.testMode) { | 113 | if (settings.testMode) { |
114 | auto subject = msg->subject(true)->asUnicodeString(); | 114 | auto subject = msg->subject(true)->asUnicodeString(); |