Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 75ee686c authored by Laurent Montel's avatar Laurent Montel 😁

Fix load attachment when it's a "message/external-body" bug reported by david

parent a12b599b
......@@ -72,7 +72,6 @@
#include <KToggleAction>
#include <KPrintPreview>
#include <kdeprintdialog.h>
#include <kfileitemactions.h>
#include <KFileItemListProperties>
......@@ -337,6 +336,13 @@ void ViewerPrivate::openAttachment( KMime::Content* node, const QString & name )
if(node->contentType(false)) {
if (node->contentType()->mimeType() == "text/x-moz-deleted")
return;
if (node->contentType()->mimeType() == "message/external-body") {
if (node->contentType()->hasParameter(QLatin1String("url"))) {
const QString url = node->contentType()->parameter(QLatin1String("url"));
KRun::runUrl(KUrl(url), QLatin1String("text/html"), q);
return;
}
}
}
const bool isEncapsulatedMessage = node->parent() && node->parent()->bodyIsMessage();
......
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