I've got a small problem. I'm trying to get the common name of an external e-mail address. I'm using the From field on the memo form and it's not as easy as doing Left and Rights due to the unpredictable format of the external email addresses. For example the From field could be:
"Richard Starkey" <email@example.com> or
Richard Starkey <firstname.lastname@example.org> or
I've been trying to use the evluate statement to get the Given Name to see how this would work but keep getting a script error: "Not a member : Evaluate". Below is the pertinent code in my script..
Dim sess as New NotesSession
Dim externalPrincipal as Variant
externalPrincipal = sess.Evaluate("@Name([G]; From)", maildoc)
Anybody know what I'm doing wrong or a better way to do it?