Class: EncodeMail
- Inherits:
-
Mail::Message
- Object
- Mail::Message
- EncodeMail
- Defined in:
- lib/popper/mail_account.rb
Instance Method Summary collapse
Instance Method Details
#subject ⇒ Object
98 99 100 |
# File 'lib/popper/mail_account.rb', line 98 def subject Kconv.toutf8(self[:Subject].value) if self[:Subject] end |
#utf_body ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/popper/mail_account.rb', line 102 def utf_body if multipart? if text_part text_part.decoded.encode("UTF-8", charset) elsif html_part html_part.decoded.encode("UTF-8", charset) end else body.decoded.encode("UTF-8", charset) end end |