mikel/mail — Issue #340: invalid byte sequence in UTF-8 (ArgumentError)
Author: mreinsch
Created: 2012-02-01 04:45:43+00:00
State: open

With rails 3.2.1, mail 2.4.1, trying to process an email coming in in Shift-JIS encoding:

invalid byte sequence in UTF-8 (ArgumentError)
from ruby/1.9.1/gems/mail-2.4.1/lib/mail/core_extensions/string.rb:4:in `to_crlf'
from ruby/1.9.1/gems/mail-2.4.1/lib/mail/message.rb:1886:in `raw_source='
from ruby/1.9.1/gems/mail-2.4.1/lib/mail/message.rb:2005:in `init_with_string'
from ruby/1.9.1/gems/mail-2.4.1/lib/mail/message.rb:125:in `initialize'
from ruby/1.9.1/gems/mail-2.4.1/lib/mail/mail.rb:50:in `new'
from ruby/1.9.1/gems/mail-2.4.1/lib/mail/mail.rb:50:in `new'
from ruby/1.9.1/bundler/gems/rails-1c5bd8a33dd7/actionmailer/lib/action_mailer/base.rb:401:in `block in receive