Commit 226827c5 authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 382007 - sent mail reply on invitation shows ics in plain text

FIXED-IN: 5.6.0
BUG: 382007
parent 3db00c49
......@@ -546,7 +546,8 @@ public:
disposition->setDisposition(KMime::Headers::CDinline);
msg->setHeader(disposition);
msg->contentTransferEncoding()->setEncoding(KMime::Headers::CEquPr);
msg->setBody(KMime::CRLFtoLF(iCal.toUtf8()));
const QString answer = i18n("Invitation answer attached.");
msg->setBody(answer.toUtf8());
} else {
// We need to set following 4 lines by hand else KMime::Content::addContent
// will create a new Content instance for us to attach the main message
......@@ -564,7 +565,8 @@ public:
bodyMessage->contentType()->setMimeType("text/plain");
bodyMessage->contentType()->setCharset("utf-8");
bodyMessage->contentTransferEncoding()->setEncoding(KMime::Headers::CEquPr);
bodyMessage->setBody(KMime::CRLFtoLF(iCal.toUtf8()));
const QString answer = i18n("Invitation answer attached.");
bodyMessage->setBody(answer.toUtf8());
bodyMessage->setHeader(bodyDisposition);
msg->addContent(bodyMessage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment