module MIME
Overview
MIME Provides raw email parsing capabilities
Defined in:
crystal-mime.crConstant Summary
-
VERSION =
"0.1.17"
Class Method Summary
- .is_multipart(content_type : Nil)
- .is_multipart(content_type : String)
- .mail_object_from_raw(raw_mime_data)
-
.normalize_crlf(data : String) : String
Support easy access with String Convert bare LF line endings to CRLF in a single pass.
- .parse_raw(mime_str : String)
-
.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...
Class Method Detail
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.
Support efficient access as IO Stream Mail looks like: Content-Type=multipart%2Fmixed%3B+boundary%3D%22------------020601070403020003080006%22&Date=Fri%2...