From f7b71affbbc4e8f69c2a8049c66a17d71628c726 Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Mon, 8 Jan 2024 12:30:00 -0700 Subject: [PATCH] remove
from very beginning of html --- 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 4e85cb7c..53d393dc 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -327,6 +327,7 @@ def clean_html_version(html) html = html.split("

\n
--
").first # strip out gmail signature html = html.split("
--").first # strip out gmail signature html = html.split("
\n--").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