diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-28 13:59:48 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-28 13:59:48 +0200 |
commit | d9025884b9c9d9c604f21d486ca318e312518cf2 (patch) | |
tree | 2decb917699eba8f332e72d90a594f64a8a68982 | |
parent | 8e3c731af39fd6a0b0e60dc2288f033b69edaafd (diff) | |
download | kube-d9025884b9c9d9c604f21d486ca318e312518cf2.tar.gz kube-d9025884b9c9d9c604f21d486ca318e312518cf2.zip |
Get saving attached messages to work.
-rw-r--r-- | framework/src/domain/mime/attachmentmodel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/src/domain/mime/attachmentmodel.cpp b/framework/src/domain/mime/attachmentmodel.cpp index 95a65d81..12f7ca74 100644 --- a/framework/src/domain/mime/attachmentmodel.cpp +++ b/framework/src/domain/mime/attachmentmodel.cpp | |||
@@ -152,6 +152,10 @@ static QString saveAttachmentToDisk(const QModelIndex &index, const QString &pat | |||
152 | Q_ASSERT(part); | 152 | Q_ASSERT(part); |
153 | auto node = part->node(); | 153 | auto node = part->node(); |
154 | auto data = node->decodedContent(); | 154 | auto data = node->decodedContent(); |
155 | //This is necessary to store messages embedded messages (EncapsulatedRfc822MessagePart) | ||
156 | if (data.isEmpty()) { | ||
157 | data = node->encodedContent(); | ||
158 | } | ||
155 | if (part->isText()) { | 159 | if (part->isText()) { |
156 | // convert CRLF to LF before writing text attachments to disk | 160 | // convert CRLF to LF before writing text attachments to disk |
157 | data = KMime::CRLFtoLF(data); | 161 | data = KMime::CRLFtoLF(data); |