Alumna::SMTP::Header
Header values for the SMTP message (RFC 5322 and RFC 2047). All methods write to the IO. They do not build a String.
Mail.new (Alumna 0.10.1+) already rejects CR and LF in from, to, reply_to, and subject. So a value here cannot add a header line.
Constants
Recommended line length (RFC 5322 section 2.1.1). Folding aims for this.
Hard line limit without CRLF (RFC 5322 section 2.1.1).
UTF-8 bytes in one encoded word. 39 bytes = 52 base64 characters. "=?UTF-8?B?" + 52 + "?=" = 64, so "Subject: " + one word stays under 76.
Class methods
The bare address for the envelope and for the Message-ID domain. "Name a@b" gives "a@b". A value without "<...>" at the end is the address. The result is a view of the value bytes. It does not allocate.
The part after the last "@" of the bare address. Empty when there is no "@".
Writes "Name: address, address" CRLF. Each address after the first is on its own folded line, so a long list does not make a long line.