diff options
-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); |