Limit quote levels

This commit is contained in:
M66B
2020-11-14 09:36:11 +01:00
parent 39b53c0883
commit 78ee7cd42d
5 changed files with 44 additions and 13 deletions

View File

@@ -570,9 +570,6 @@ public class MessageHelper {
// Build html body
Document document = JsoupEx.parse(message.getFile(context));
Element ref = null;
if (BuildConfig.DEBUG)
ref = document.select("div[fairemail=reference]").first();
// When sending message
if (identity != null && send) {
@@ -656,14 +653,6 @@ public class MessageHelper {
String htmlContent = document.html();
String htmlContentType = "text/html; charset=" + Charset.defaultCharset().name();
// Limit alternative plain content
if (ref != null &&
(message.plain_only == null || !message.plain_only)) {
Element first = ref.select("blockquote").first();
if (first != null)
first.children().select("blockquote").remove();
}
String plainContent = HtmlHelper.getText(context, document.html());
String plainContentType = "text/plain; charset=" + Charset.defaultCharset().name();