From 2714847e4d713a4b1472b6925b5c3f4846ea7127 Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Mon, 8 Jan 2024 13:09:22 -0700 Subject: [PATCH] strip lineBreakAtBeginningOfSignature --- app/lib/email_processor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/email_processor.rb b/app/lib/email_processor.rb index 1f408be9..4b1053a7 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -347,6 +347,7 @@ def clean_html_version(html) html = html.split("
--").first # strip out gmail signature html = html.split("
\n--").first # strip out gmail signature html = html.split("
").first # strip out gmail signature + html = html.split('
').first # strip out gmail signature html&.gsub!(/\A/, "") # remove
from very beginning of html html&.gsub!(/
.+<\/div>/, "") # remove hidden divs / tracking pixels html&.gsub!(/src=\"cid\:\S+\"/, "src=\"\" style=\"display: none;\"") # remove attached images showing as broken inline images