msys.parseRFC2822Addresses — Parse the address string per the address parsing rules defined in RFC2822
addressstring: string component: string
Parse the address string per the address parsing rules defined in RFC2822. Note that this is NOT the same specification used to parse SMTP protocol addresses (RFC2821) .
Where the address header is made up of
user+detail@domain, the possible components are:
allthe entire email address
localparteverything before the
userthe user portion
detailthe detail portion
domainthe domain portion
A table containing each detected address component is returned.
It is anticipated that you will usually want to use the
msg:address_header function as it is more convenient.
Because this function is in the
msys namespace, an explicit
require is not necessary.