Module: Mail::Jdec::BodyPatch

Defined in:
lib/mail/jdec/body_patch.rb

Instance Method Summary collapse

Instance Method Details

#decodedObject



6
7
8
9
10
11
12
13
14
# File 'lib/mail/jdec/body_patch.rb', line 6

def decoded
  super
rescue Mail::UnknownEncodingType => e
  if Jdec.enabled?
    Jdec::Decoder.force_utf8(raw_source)
  else
    raise e
  end
end