# File lib/jpmobile/mail.rb, line 302 def init_with_string(string) self.raw_source = string set_envelope_header parse_message @separate_parts = multipart? end
# File lib/jpmobile/mail.rb, line 309 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
# File lib/jpmobile/mail.rb, line 328 def ascii_compatible!(str) str end