Parse normal MUA messages consisting of only a quote

This commit is contained in:
Alexander Krotov
2020-10-16 02:18:41 +03:00
committed by holger krekel
parent 07e4762f71
commit 19697e255e
2 changed files with 35 additions and 4 deletions

View File

@@ -71,10 +71,9 @@ pub fn simplify(mut input: String, is_chat_message: bool) -> (String, bool, Opti
let lines = split_lines(&input);
let (lines, is_forwarded) = skip_forward_header(&lines);
let original_lines = &lines;
let lines = remove_message_footer(lines);
let (lines, top_quote) = remove_top_quote(lines);
let original_lines = &lines;
let lines = remove_message_footer(lines);
let text = if is_chat_message {
render_message(lines, false)