Plain Text Emails are Html Escaped
We are running redmine 2.0.4 in the following environment:
About your application's environment Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.8.15 Rack version 1.4 Rails version 3.2.6 Active Record version 3.2.6 Action Pack version 3.2.6 Active Resource version 3.2.6 Action Mailer version 3.2.6 Active Support version 3.2.6 Middleware Rack::Cache, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x7f933e927768>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication Application root /webapps/ncta-redmine/data/redmine Environment production Database adapter mysql Database schema version 20120422150750
We recently upgraded to this from a very wonky redmine 1.2 setup. Most of our users actually just interface through email, but we've noticed that the new version is automatically html escaping everything.
I think the fix is to modify the templates to add .html_safe where appropriate to the text templates. But there might be a more elegant way as I can't claim to know much ruby nor rails.
Anyhow, please advise if there is a better way, I'm happy to submit a patch if not.