Please complete the details below then remove this line:
Domino/Notes Version: 14.5
Add-on Product (if appropriate, e.g. Verse / Traveler / Nomad / Domino REST API):
Its Version:
Operating System:
Client (Notes, Nomad Web, Nomad Mobile, Android/iOS, browser version): 14.5
When opening the Calendar Profile on the “Access & Delegation“ tab there is an option to define a special behaviour for Mailin-Databases “Enable Alternate From Feature“.
This feature randomly gives the message:
This database is not listed as a Mail-In Database. Please contact your administrator.
I checked the code and the error comes from this line of LotusScript-Code in the Entering-Event of the “IsMailinDb” field:
If (Lcase(MDBdoc.MailServer(0)) = Lcase(db.Server)) And ((Lcase(MDBdoc.MailFile(0)) = Lcase(db.Filepath)) Or ( Lfpth = Lcase(db.Filepath)))Then
And I really ask myself: Who in the world does Notes-Name comparison without normalization of the name?
MailServer in the mailin-document is a name field and NORMALLY should contain a canonical name like
CN=MyServer/O=MyOrg
But it will also work if somebody created the document programmatically and wrote
MyServer/MyOrg
into it.
That was not the problem in my case. Here on a Mailcluster I found out that on one cluster partner the LotusScript-Property db.Server returns the canonical name CN=ClusterPartner1/O=MyOrg while on the other cluster partner the same function returns the abbreviated form ClusterPartner2/MyOrg.
So if the database happens to reside on the wrong cluster partner, the check will fail and you will get the misleading error message.
This is especially annoying as in LotusScript-Library “Common” there is a function “NameCompare” that could and SHOULD have been used here, then this error would not occur.
Please fix this in the template for the next version.
In addition this whole logic will in general not work, if you open the database from a cluster partner as this check always only tries the server that is in the database document and does not care for clusters…Not well thought through
