mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-28 00:35:58 +00:00
parent
db2ffc06b9
commit
0c959346bf
1 changed files with 0 additions and 10 deletions
|
@ -466,16 +466,6 @@ public class MessageHelper {
|
||||||
String htmlContent = document.html();
|
String htmlContent = document.html();
|
||||||
String plainContent = HtmlHelper.getText(htmlContent);
|
String plainContent = HtmlHelper.getText(htmlContent);
|
||||||
|
|
||||||
if (message.encrypt != null && !EntityMessage.ENCRYPT_NONE.equals(message.encrypt)) {
|
|
||||||
// Normalize trailing spaces and new lines
|
|
||||||
Log.i("Normalizing for encryption");
|
|
||||||
htmlContent = htmlContent.replaceAll(" +$", "")
|
|
||||||
.replace("\\r?\\n", "\\r\\n");
|
|
||||||
|
|
||||||
plainContent = plainContent.replaceAll(" +$", "")
|
|
||||||
.replace("\\r?\\n", "\\r\\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
BodyPart plainPart = new MimeBodyPart();
|
BodyPart plainPart = new MimeBodyPart();
|
||||||
plainPart.setContent(plainContent, "text/plain; charset=" + Charset.defaultCharset().name());
|
plainPart.setContent(plainContent, "text/plain; charset=" + Charset.defaultCharset().name());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue