diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-12-11 08:32:29 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-12-11 08:32:29 +0100 |
commit | 9f2b3626cc3399c47736faa1b9954f7dbdbe8bd6 (patch) | |
tree | 79a060a5ae59889c02c1a25543c20823aa20d6ac /framework | |
parent | c6d969c4bd301d5a1865b9ee7ff1190b7a7778cd (diff) | |
download | kube-9f2b3626cc3399c47736faa1b9954f7dbdbe8bd6.tar.gz kube-9f2b3626cc3399c47736faa1b9954f7dbdbe8bd6.zip |
These heuristics would even match html content from kube
so not what want.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/src/domain/mime/partmodel.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp index 0b95ecbd..01b640b6 100644 --- a/framework/src/domain/mime/partmodel.cpp +++ b/framework/src/domain/mime/partmodel.cpp | |||
@@ -201,16 +201,10 @@ 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 | return true; | ||
206 | } | ||
207 | //Media queries are too advanced | 204 | //Media queries are too advanced |
208 | if (text.contains("@media")) { | 205 | if (text.contains("@media")) { |
209 | return true; | 206 | return true; |
210 | } | 207 | } |
211 | if (text.contains("<style")) { | ||
212 | return true; | ||
213 | } | ||
214 | return false; | 208 | return false; |
215 | } else { | 209 | } else { |
216 | return false; | 210 | return false; |