From 6b5c515bfb7ee1f1b5b1c398f76f78f1912cb0cb Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 21 Mar 2020 14:48:53 +0100 Subject: [PATCH] Prevent flowing Usenet signature --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 9b16f8d0fa..00a055c93f 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -595,7 +595,7 @@ public class MessageHelper { if (format_flowed) { List flowed = new ArrayList<>(); for (String line : plainContent.split("\\r?\\n")) { - if (line.contains(" ")) { + if (line.contains(" ") && !"-- ".equals(line)) { StringBuffer sb = new StringBuffer(); for (String word : line.split(" ")) { if (sb.length() + word.length() > FORMAT_FLOWED_LINE_LENGTH) {