在Domino/Notes使用过程中,如果用户邮箱过大,管理员能在邮箱模板中的“memo”表单的Queryopen事件中加以下代码,限制用户邮箱过大。(其中32000000表示邮箱限额为32M),我把公司内限额为32M,可根据需要调整。
Set cMemoObject = New UIMemoDocument
Call cMemoObject.Init(Source,Isnewdoc)
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim size As Double
Dim Quota As Double
size = db.size
If size > 32000000 Then 'bytes
Msgbox "您的信箱已太大,请先删除部分信件后再压缩信箱,完成后,即可收发信件。"
Continue = False
Exit Sub
End If
End Sub
未限额前代码为:
Set cMemoObject = New UIMemoDocument
Call cMemoObject.Init(Source,Isnewdoc)
End Sub