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