module

MIME

MIME Provides raw email parsing capabilities

Constants

VERSION = "0.1.17"

Class methods

is_multipart(content_type : Nil)
Source
is_multipart(content_type : String)
Source
mail_object_from_raw(raw_mime_data)
Source
normalize_crlf(data : String) : String

Support easy access with String Convert bare LF line endings to CRLF in a single pass. Returns the input unchanged (no copy) when it is already CRLF-only — the common case for mail received over SMTP. Lone CRs pass through untouched, matching the previous gsub(/\r\n/, "\n").gsub(/\n/, "\r\n") behavior without its three full-body copies.

Source
parse_raw(mime_str : String)
Source
parse_raw(mime_io : IO, boundary : String | Nil = nil)

Support efficient access as IO Stream Mail looks like: Content-Type=multipart%2Fmixed%3B+boundary%3D%22------------020601070403020003080006%22&Date=Fri%2...

Source

Nested types