mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-24 18:03:35 +02:00
Simplified/improved plain text
This commit is contained in:
@@ -501,7 +501,7 @@ public class MessageHelper {
|
||||
Multipart report = new MimeMultipart("report; report-type=disposition-notification");
|
||||
|
||||
String html = Helper.readText(message.getFile(context));
|
||||
String plainContent = HtmlHelper.getText(html);
|
||||
String plainContent = HtmlHelper.getText(context, html);
|
||||
|
||||
BodyPart plainPart = new MimeBodyPart();
|
||||
plainPart.setContent(plainContent, "text/plain; charset=" + Charset.defaultCharset().name());
|
||||
@@ -612,7 +612,7 @@ public class MessageHelper {
|
||||
String htmlContent = document.html();
|
||||
String htmlContentType = "text/html; charset=" + Charset.defaultCharset().name();
|
||||
|
||||
String plainContent = HtmlHelper.getText(htmlContent);
|
||||
String plainContent = HtmlHelper.getText(context, htmlContent);
|
||||
String plainContentType = "text/plain; charset=" + Charset.defaultCharset().name();
|
||||
|
||||
if (format_flowed) {
|
||||
|
||||
Reference in New Issue
Block a user