Commit d97e82b2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 434392 - message/global type, can't view it, must be associated to kmail --view

BUG: 434392
FIXED-IN: 5.17.0
parent 751c18fb
Pipeline #54447 passed with stage
in 25 minutes and 24 seconds
......@@ -517,6 +517,9 @@ void ViewerPrivate::showAttachmentPopup(KMime::Content *node, const QString &nam
if (auto contentType = node->contentType(false)) {
contentTypeStr = QLatin1String(contentType->mimeType());
}
if (contentTypeStr == QStringLiteral("message/global")) { // Not registred in mimetype => it's a message/rfc822
contentTypeStr = QStringLiteral("message/rfc822");
}
deletedAttachment = (contentTypeStr == QStringLiteral("text/x-moz-deleted"));
// Not necessary to show popup menu when attachment was removed
if (deletedAttachment) {
......
......@@ -77,6 +77,8 @@ QString MimeTreeParser::Util::iconNameForMimetype(const QString &mimeType, const
tMimeType = QStringLiteral("image/jpeg");
} else if (mimeType == QLatin1String("application/x-pkcs7-signature")) {
tMimeType = QStringLiteral("application/pkcs7-signature");
} else if (mimeType == QLatin1String("message/global")) {
tMimeType = QStringLiteral("message/rfc822");
}
QMimeDatabase mimeDb;
auto mime = mimeDb.mimeTypeForName(tMimeType);
......
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