pub fn encode_email_address(addr: &str) -> StringExpand description
Encode an email address for use in email headers.
Rules:
- If the display name contains non-ASCII chars → RFC 2047 encode it
- If the display name contains RFC 822 special chars (like
.) → quote it - Otherwise → use as-is