class EncodeMail

Public Instance Methods

subject() click to toggle source
# File lib/popper/mail_account.rb, line 110
def subject
  Kconv.toutf8(self[:Subject].value) if self[:Subject]
end
utf_body() click to toggle source
# 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