Project

General

Profile

Patch #18047 » check_for_pick_encoding.patch

Felix Schäfer, 2014-10-08 14:31

View differences:

app/models/mail_handler.rb
421 421
    end
422 422

  
423 423
    @plain_text_body = parts.map do |p|
424
      body_charset = p.charset.respond_to?(:force_encoding) ?
424
      body_charset = Mail::RubyVer.respond_to?(:pick_encoding) ?
425 425
                       Mail::RubyVer.pick_encoding(p.charset).to_s : p.charset
426 426
      Redmine::CodesetUtil.to_utf8(p.body.decoded, body_charset)
427 427
    end.join("\r\n")
    (1-1/1)