class Mail::Part

Public Instance Methods

init_with_string(string) click to toggle source
# File lib/jpmobile/mail.rb, line 272
def init_with_string(string)
  self.raw_source = string
  set_envelope_header
  parse_message
  @separate_parts = multipart?
end
parse_message()
parse_message_with_jpmobile() click to toggle source
# File lib/jpmobile/mail.rb, line 279
def parse_message_with_jpmobile
  header_part, body_part = raw_source.split(/#{CRLF}#{WSP}*#{CRLF}/m, 2)

  self.header = if header_part && header_part.match(HEADER_LINE)
                  header_part
                else
                  "Content-Type: text/plain\r\n"
                end

  @body_part_jpmobile = body_part
  convert_encoding_jpmobile
  body_part = @body_part_jpmobile
  self.body = body_part
end
Also aliased as: parse_message
parse_message_without_jpmobile()
Alias for: parse_message

Private Instance Methods

ascii_compatible!(str) click to toggle source
# File lib/jpmobile/mail.rb, line 299
def ascii_compatible!(str)
  str
end