|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
Dim session As New notessession
Dim name_db As notesdatabase
Dim name_view As notesview
Dim name_doc As notesdocument
Dim usermail_db As notesdatabase
Dim usermail_dc As notesdocumentcollection
Set name_db = session.GetDatabase( "ServerName", "names.nsf" )
Set name_view = name_db.getview("People")
Set name_doc = name_view.getfirstdocument
i=1
Open "c:\MailStat.txt" For Append As #1
Do While Not name_doc Is Nothing
username = name_doc.fullname(0)
Print #1,"开始检查"+username+"的邮箱......................."
Set usermail_db = session.getdatabase("ServerName",name_doc.MailFile(0)+".nsf")
Set usermail_dc = usermail_db.AllDocuments
Print #1,username+"的邮箱共有"+usermail_dc.count+"个文档"
Print #1,"检查结束........................................."+Chr(13)
i=i+1
Set name_doc = name_view.getnthdocument(i)
Loop
Close #1
|
|