From b9a0aa7ee24364a2fe025f9482fcff969b2a133d Mon Sep 17 00:00:00 2001 From: Alex Shulgin Date: Mon, 25 Feb 2013 13:26:07 -0800 Subject: [PATCH] Only try to strip HTML tags from email when actually parsing text/html MIME part. --- app/models/mail_handler.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index f8fea89..c04d3c6 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -386,8 +386,11 @@ def plain_text_body @plain_text_body = Redmine::CodesetUtil.to_utf8(part.body.decoded, part.charset) # strip html tags and remove doctype directive - @plain_text_body = strip_tags(@plain_text_body.strip) - @plain_text_body.sub! %r{^