diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-23 16:28:45 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-23 16:32:01 +0100 |
commit | 7b821a6f7bc2fe75c91ee071ddb711a4774b9635 (patch) | |
tree | 8089624ea83027a5ea36e4f9f9a362e60a95ce29 /framework | |
parent | 0c881f0c1b77cf8876094e3647d1732210b954d1 (diff) | |
download | kube-7b821a6f7bc2fe75c91ee071ddb711a4774b9635.tar.gz kube-7b821a6f7bc2fe75c91ee071ddb711a4774b9635.zip |
Make sure we don't end up with any CRLF's
Diffstat (limited to 'framework')
-rw-r--r-- | framework/src/domain/mime/mailtemplates.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/src/domain/mime/mailtemplates.cpp b/framework/src/domain/mime/mailtemplates.cpp index 997eb3ae..a614da1a 100644 --- a/framework/src/domain/mime/mailtemplates.cpp +++ b/framework/src/domain/mime/mailtemplates.cpp | |||
@@ -951,8 +951,7 @@ void MailTemplates::forward(const KMime::Message::Ptr &origMsg, | |||
951 | fwdAttachment->contentDisposition()->setDisposition(KMime::Headers::CDinline); | 951 | fwdAttachment->contentDisposition()->setDisposition(KMime::Headers::CDinline); |
952 | fwdAttachment->contentType()->setMimeType("message/rfc822"); | 952 | fwdAttachment->contentType()->setMimeType("message/rfc822"); |
953 | fwdAttachment->contentDisposition()->setFilename(forwardedMessage->subject()->asUnicodeString() + ".eml"); | 953 | fwdAttachment->contentDisposition()->setFilename(forwardedMessage->subject()->asUnicodeString() + ".eml"); |
954 | // The mail was parsed in loadMessage before, so no need to assemble it | 954 | fwdAttachment->setBody(KMime::CRLFtoLF(forwardedMessage->encodedContent(false))); |
955 | fwdAttachment->setBody(forwardedMessage->encodedContent()); | ||
956 | 955 | ||
957 | wrapperMsg->addContent(fwdAttachment); | 956 | wrapperMsg->addContent(fwdAttachment); |
958 | wrapperMsg->assemble(); | 957 | wrapperMsg->assemble(); |