Extract a comment, often the real name of the addressee, from an email address. If an address does not contain a comment, the address itself is returned.
name := NameOf( string )
- The address string from which a comment is to be extracted
- A string containing the extracted comment or the address if no comment
"Fred Bloggs" := NameOf("Fred Bloggs <firstname.lastname@example.org>")
"Fred Bloggs" := NameOf("email@example.com (Fred Bloggs)")
"firstname.lastname@example.org" := NameOf("email@example.com")