1. Add two calculations a) Domain formula in the registration page: @Domain A0 b) Mailfile formula: @Trim ("mail /" @ text (username)) A1
2. Refer to the following code to implement the user registration and the copy of the mail database in the Domino directory and the modification of the mail data inventory control list
The personnel information written into the Domino directory names.nsf 00 namesDocument.Type = "Person" 01 namesDocument.Form = "Person" 02 namesDocument.LastName = doc.UserName (0) 03 namesDocument.FullName = doc.UserName (0) 04 namesDocument .HTTPPassword = doc.UserPassword (0) 05 namesDocument.MailSystem = "6" 06 namesDocument.MailDomain = doc.DoMain (0) 07 namesDocument.MailServer = session.UserName 08 namesDocument.MailFile = doc.MailFile (0) 09 namesDocument. PeopleName = Doc.PeopleName (0) 10 NamesDocument.password = doc.password (0) 11 Call namesdocument.save (true, false) 12 13 Copy the mail database to the specified directory, and specify this mail database belongs to who 14 set copydb = new notesdatabase ("", "Mail. NSF ") 15 COPYTOFILENAME = TRIM (" mail / "& doc.username (0)) 16 ServerName =" "
17 Set toDB = copyDB.CreateCopy (serverName, copyToFileName) 18 Set acl_toDB = toDB.ACL 19 Set entry_toDB = acl_toDB.CreateACLEntry (doc.UserName (0), ACLLEVEL_MANAGER) 20 Call acl_toDB.Save 21 Set entry = acl_toDB.GetEntry ( " Anonymous ") 22 Call Entry.Remove 23 Call ACL_TODB.SAVE 243. Special attention to the following paladial interpretation:
06 Be sure to specify Mailsystem to "6" 07 to automate the network domain automation to which the mail server belongs is Doc.Domain (0) [see A0] 08 Name [If the mail server and WWW server are specified for different mail servers] 09 Specify a mail database of a particular user [such as "/ mail / developer.nsf" (relative path)]
20-22 Death 20 and 22 Solve the matching problem of the access control list of the mail database (the problem is as follows):
a) Permissions you used to register in the mail.nsf template? B) What is the user name you use after a specific user's mail database generated? C) Permission issues for mail system maintenance thus triggered?