summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/composercontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/domain/composercontroller.cpp')
-rw-r--r--framework/src/domain/composercontroller.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/src/domain/composercontroller.cpp b/framework/src/domain/composercontroller.cpp
index abb4fdf4..258c25d5 100644
--- a/framework/src/domain/composercontroller.cpp
+++ b/framework/src/domain/composercontroller.cpp
@@ -346,7 +346,10 @@ void ComposerController::setMessage(const KMime::Message::Ptr &msg)
346 mBccModel->setStringList(getStringListFromAddresses(msg->bcc(true)->mailboxes())); 346 mBccModel->setStringList(getStringListFromAddresses(msg->bcc(true)->mailboxes()));
347 347
348 setSubject(msg->subject(true)->asUnicodeString()); 348 setSubject(msg->subject(true)->asUnicodeString());
349 setBody(MailTemplates::plaintextContent(msg)); 349 bool isHtml = false;
350 const auto body = MailTemplates::body(msg, isHtml);
351 setHtmlBody(isHtml);
352 setBody(body);
350 353
351 //TODO use ObjecTreeParser to get encrypted attachments as well 354 //TODO use ObjecTreeParser to get encrypted attachments as well
352 foreach (const auto &att, msg->attachments()) { 355 foreach (const auto &att, msg->attachments()) {