Plain text only extended reply header

This commit is contained in:
M66B
2021-07-18 21:31:43 +02:00
parent fda5e0da5f
commit f345fb8e0c
2 changed files with 11 additions and 6 deletions

View File

@@ -41,6 +41,7 @@ import com.sun.mail.util.MessageRemovedIOException;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
@@ -698,6 +699,11 @@ public class MessageHelper {
document.select("div[fairemail=signature]").removeAttr("fairemail");
document.select("div[fairemail=reference]").removeAttr("fairemail");
Elements reply = document.select("div[fairemail=reply]");
if (message.plain_only != null && message.plain_only)
reply.select("strong").tagName("span");
reply.removeAttr("fairemail");
DB db = DB.getInstance(context);
try {
db.beginTransaction();