imap_rfc822_parse_adrlist

imap_rfc822_parse_adrlist -- Parses an address string

Description

string imap_rfc822_parse_adrlist (string address, string default_host);

This function parses the address string as defined in RFC822 and for each address, returns an array of objects. The 4 objects are:


mailbox  - the mailbox name (username)
host     - the host name
personal - the personal name
adl      - at domain source route