InternetMessageFormatHeader

public struct InternetMessageFormatHeader : Equatable

Representation of the email headers formatted under the RFC-6854 (supersedes RFC 822) standard. Some further rules (beyond RFC 6854) must also be applied to the data:

  • At least one recipient must exist (to, cc, bcc).
  • For all email addresses:
    • Total length (including both local part and domain) must not exceed 256 characters.
    • Local part must not exceed more than 64 characters.
    • Input domain parts (domain separated by .) must not exceed 63 characters.
    • Address must match standard email address pattern: ^[a-zA-Z0-9](\.?[-_a-zA-Z0-9])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$.