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
110 111 112 |
# File 'lib/popper/mail_account.rb', line 110 def subject Kconv.toutf8(self[:Subject].value) if self[:Subject] end |
#utf_body ⇒ Object
114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/popper/mail_account.rb', line 114 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 |