mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Revert "Prevent bare linefeeds in PGP signed messages"
This reverts commit 9cedb94e00
.
This commit is contained in:
parent
9cedb94e00
commit
dc6cf712c0
1 changed files with 0 additions and 9 deletions
|
@ -1087,15 +1087,6 @@ public class MessageHelper {
|
||||||
String plainContent = HtmlHelper.getText(context, document.html());
|
String plainContent = HtmlHelper.getText(context, document.html());
|
||||||
String plainContentType = "text/plain; charset=" + Charset.defaultCharset().name();
|
String plainContentType = "text/plain; charset=" + Charset.defaultCharset().name();
|
||||||
|
|
||||||
if (EntityMessage.PGP_SIGNONLY.equals(message.ui_encrypt)) {
|
|
||||||
// 550 5.6.11 SMTPSEND.BareLinefeedsAreIllegal; message contains bare linefeeds, which cannot be sent via DATA and receiving system does not support BDAT (failed)
|
|
||||||
// https://learn.microsoft.com/en-us/exchange/troubleshoot/email-delivery/ndr/fix-error-code-550-5-6-11-in-exchange-online
|
|
||||||
plainContent = plainContent
|
|
||||||
.replaceAll("\r\n", "\n")
|
|
||||||
.replaceAll("\r", "")
|
|
||||||
.replaceAll("\n", "\r\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (format_flowed) {
|
if (format_flowed) {
|
||||||
List<String> flowed = new ArrayList<>();
|
List<String> flowed = new ArrayList<>();
|
||||||
for (String line : plainContent.split("\\r?\\n")) {
|
for (String line : plainContent.split("\\r?\\n")) {
|
||||||
|
|
Loading…
Reference in a new issue