mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Plain text only extended reply header
This commit is contained in:
parent
fda5e0da5f
commit
f345fb8e0c
2 changed files with 11 additions and 6 deletions
|
@ -416,13 +416,12 @@ public class EntityMessage implements Serializable {
|
|||
} else
|
||||
p.text(DF.format(new Date(received)) + " " + MessageHelper.formatAddresses(from) + ":");
|
||||
|
||||
if (separate) {
|
||||
Element div = document.createElement("div");
|
||||
Element div = document.createElement("div")
|
||||
.attr("fairemail", "reply");
|
||||
if (separate)
|
||||
div.appendElement("hr");
|
||||
div.appendChild(p);
|
||||
return div;
|
||||
} else
|
||||
return p;
|
||||
div.appendChild(p);
|
||||
return div;
|
||||
}
|
||||
|
||||
String getNotificationChannelId() {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue