Commit 213c8146 authored by Volker Krause's avatar Volker Krause
Browse files

Make the checks for plain-text MIME message nodes even stricter

This helps with ical attachments wrongly marked as text/plain.
parent 93a40374
Pipeline #55584 passed with stages
in 13 minutes and 5 seconds
......@@ -98,7 +98,7 @@ static void expandContentNode(ExtractorDocumentNode &node, KMime::Content *conte
}
ExtractorDocumentNode child;
if ((ct && ct->isPlainText()) || (!ct && content->isTopLevel())) {
if ((ct && ct->isPlainText() && fileName.isEmpty()) || (!ct && content->isTopLevel())) {
child = engine->documentNodeFactory()->createNode(content->decodedText(), u"text/plain");
} else {
child = engine->documentNodeFactory()->createNode(content->decodedContent(), fileName);
......
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