|
|
@ -36,7 +36,6 @@ import com.sun.mail.util.QDecoderStream;
|
|
|
|
|
|
|
|
|
|
|
|
import org.jsoup.nodes.Document;
|
|
|
|
import org.jsoup.nodes.Document;
|
|
|
|
import org.jsoup.nodes.Element;
|
|
|
|
import org.jsoup.nodes.Element;
|
|
|
|
import org.jsoup.select.Elements;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.BufferedInputStream;
|
|
|
|
import java.io.BufferedInputStream;
|
|
|
|
import java.io.BufferedOutputStream;
|
|
|
|
import java.io.BufferedOutputStream;
|
|
|
@ -516,20 +515,10 @@ public class MessageHelper {
|
|
|
|
|
|
|
|
|
|
|
|
// When sending message
|
|
|
|
// When sending message
|
|
|
|
if (identity != null) {
|
|
|
|
if (identity != null) {
|
|
|
|
Elements sig = document.select("div[fairemail=signature]");
|
|
|
|
|
|
|
|
Elements ref = document.select("div[fairemail=reference]");
|
|
|
|
|
|
|
|
sig.remove();
|
|
|
|
|
|
|
|
ref.remove();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HtmlHelper.convertLists(document);
|
|
|
|
HtmlHelper.convertLists(document);
|
|
|
|
|
|
|
|
|
|
|
|
sig.removeAttr("fairemail");
|
|
|
|
document.select("div[fairemail=signature]").removeAttr("fairemail");
|
|
|
|
ref.removeAttr("fairemail");
|
|
|
|
document.select("div[fairemail=reference]").removeAttr("fairemail");
|
|
|
|
|
|
|
|
|
|
|
|
for (Element e : sig)
|
|
|
|
|
|
|
|
document.body().appendChild(e);
|
|
|
|
|
|
|
|
for (Element e : ref)
|
|
|
|
|
|
|
|
document.body().appendChild(e);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|