From a9b71aff6d59218d6d4aee2c364eee1a5b7b4f89 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 11 Nov 2024 16:08:07 +0100 Subject: [PATCH] line-before-quote may be up to 120 character long. 80 characters are a bit limited in practise ... On Mon, 3 Jan, 2022 at 8:34 PM "Anonymous The Mighty" wrote: ... already breaks the limit. it is good to allow up to 40 additional characters for name + email address. allowing any length, however, may catch too much, as the line could also be a normal paragraph with important content, so 120 characters seems reasonable. the idea of adding more complexity here would probably lead only to, well more complexity - things can anyways go wrong - and, we have the "show full message..." button for exactly that purpose, so that the user can access everything as original. so, if things go wrong sometimes, this is expected and fine. --- src/simplify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simplify.rs b/src/simplify.rs index 6932a9679..7efb3f7c3 100644 --- a/src/simplify.rs +++ b/src/simplify.rs @@ -298,7 +298,7 @@ fn is_quoted_headline(buf: &str) -> bool { - Currently, we simply check if the last character is a ':'. - Checking for the existence of an email address may fail (headlines may show the user's name instead of the address) */ - buf.len() <= 80 && buf.ends_with(':') + buf.len() <= 120 && buf.ends_with(':') } fn is_plain_quote(buf: &str) -> bool {