mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Plain text only extended reply header
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user