summaryrefslogtreecommitdiffstats
path: root/framework/src/domain
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/domain')
-rw-r--r--framework/src/domain/mime/partmodel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp
index 01b640b6..c363da33 100644
--- a/framework/src/domain/mime/partmodel.cpp
+++ b/framework/src/domain/mime/partmodel.cpp
@@ -201,6 +201,13 @@ QVariant PartModel::data(const QModelIndex &index, int role) const
201 auto complexHtml = [&] { 201 auto complexHtml = [&] {
202 if (messagePart->isHtml()) { 202 if (messagePart->isHtml()) {
203 const auto text = messagePart->htmlContent(); 203 const auto text = messagePart->htmlContent();
204 if (text.contains("<!DOCTYPE html PUBLIC")) {
205 //We can probably deal with this if it adheres to the strict dtd
206 //(that's what our composer produces as well)
207 if (!text.contains("http://www.w3.org/TR/REC-html40/strict.dtd")) {
208 return true;
209 }
210 }
204 //Media queries are too advanced 211 //Media queries are too advanced
205 if (text.contains("@media")) { 212 if (text.contains("@media")) {
206 return true; 213 return true;