Member Junction
    Preparing search index...
    • Parses an RFC 5322 style address-list header value (To: / Cc: / Bcc:) into bare email addresses.

      Handles:

      • Quoted display names containing commas: "Doe, Jane" <jane@x.com>jane@x.com
      • Angle-bracket forms with unquoted names: Jane Doe <jane@x.com>jane@x.com
      • Bare addresses: jane@x.comjane@x.com
      • Empty / null / undefined input → []
      • Entries with no plausible address (nothing containing @) are dropped

      Parameters

      • headerValue: string

        the raw header value, or null/undefined when the header is absent

      Returns string[]

      bare email addresses, in original order