Parent

Class/Module Index [+]

Quicksearch

Mail::Part

Public Instance Methods

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

  if header_part =~ HEADER_LINE
    self.header = header_part
  else
    self.header = "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() click to toggle source
Alias for: parse_message

[Validate]

Generated with the Darkfish Rdoc Generator 2.