Domingo 1.4
Version 1.4 of the Domingo library which wraps the standard Lotus Notes/Domino Java API has been released. Via developerWorks.
RFC821 address functions in Notes - are they working properly?
I have been trying to use the built-in RFC821 address functions in Notes recently but has given up since they do not work correctly in my mind. A RFC821 - or an internet address - is in my mind composed of a local part (the part before the @-sign) and a period separated domain component (the part after the @-sign). A valid RFC821 address must contain both parts. Valid examples could be:
- jdoe@example.com
- john.doe@example.com
- jdoe@sales.example.com
Below is a test case for LotusScript (non-blank value should indicate a valid RFC821 address).
Dim nn As New NotesName("jdoe@example.com")
Print nn.Addr821
>> jdoe@example.com
Set nn = New NotesName("jdoe@example")
Print nn.Addr821
>> jdoe@example
The help states:
The RFC 821 address is a name followed by an at sign followed by an organization, for example, jbg@acme.us.com. In an RFC 822 address, it is the part enclosed in pointed brackets. This property returns an empty string if the name does not contain an RFC 821 Internet address.
In my mind this is just plain wrong.