msgpart:address_header

March 26, 2020 Contributors

Name

msgpart:address_header — Parse each instance of the named header for RFC2822 addresses

Synopsis

msgpart:address_header(headername, component);

headername: string
component: string, optional

Description

Parse each instance of the named header for RFC2822 addresses.

Where the address header is made up of [email protected], the possible components are:

  • all the entire email address

  • localpart everything before the @

  • user the user portion

  • detail the detail portion

  • domain the domain portion

Enable this function with the statement require('msys.extended.message');.