]> source.dussan.org Git - redmine.git/commitdiff
remove redundant code from app/models/mail_handler.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 6 May 2012 13:50:30 +0000 (13:50 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 6 May 2012 13:50:30 +0000 (13:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9646 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mail_handler.rb

index 9e7e3aade235bf8c2b4e9443d6c9b5feb504cfde..4a0b2ea0edc069db1d810418e022f6ec6d3fa6ab 100644 (file)
@@ -354,10 +354,6 @@ class MailHandler < ActionMailer::Base
     part = email.text_part || email.html_part || email
     @plain_text_body = Redmine::CodesetUtil.to_utf8(part.body.decoded, part.charset)
 
-    if @plain_text_body.respond_to?(:force_encoding)
-     # @plain_text_body = @plain_text_body.force_encoding(@email.charset).encode("UTF-8")
-    end
-
     # strip html tags and remove doctype directive
     @plain_text_body = strip_tags(@plain_text_body.strip)
     @plain_text_body.sub! %r{^<!DOCTYPE .*$}, ''