summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-05-06 13:50:30 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-05-06 13:50:30 +0000
commit31d2d1284ad3b9c6085008a9b6a416f3f68d1bc6 (patch)
tree925d05dd8e9468aa23e853c43e954b35fda2ade8 /app/models
parentf6882cd69e65176b5fcedbe4058c0560bb178de2 (diff)
downloadredmine-31d2d1284ad3b9c6085008a9b6a416f3f68d1bc6.tar.gz
redmine-31d2d1284ad3b9c6085008a9b6a416f3f68d1bc6.zip
remove redundant code from app/models/mail_handler.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9646 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/mail_handler.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index 9e7e3aade..4a0b2ea0e 100644
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -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 .*$}, ''