##// END OF EJS Templates
remove redundant code from app/models/mail_handler.rb...
Toshi MARUYAMA -
r9463:31d2d1284ad3
parent child
Show More
@@ -354,10 +354,6 class MailHandler < ActionMailer::Base
354 354 part = email.text_part || email.html_part || email
355 355 @plain_text_body = Redmine::CodesetUtil.to_utf8(part.body.decoded, part.charset)
356 356
357 if @plain_text_body.respond_to?(:force_encoding)
358 # @plain_text_body = @plain_text_body.force_encoding(@email.charset).encode("UTF-8")
359 end
360
361 357 # strip html tags and remove doctype directive
362 358 @plain_text_body = strip_tags(@plain_text_body.strip)
363 359 @plain_text_body.sub! %r{^<!DOCTYPE .*$}, ''
General Comments 0
You need to be logged in to leave comments. Login now