- UID
- 7600813
- 阅读权限
- 20
- 帖子
- 11
- 精华贴数
- 0
- 技术排名
- 51606
- 技术积分
- 33
- 社区排名
- 2814
- 社区积分
- 308
- 注册时间
- 2006-7-15
- 精华贴数
- 0
- 技术积分
- 33
- 社区积分
- 308
- 注册时间
- 2006-7-15
- 论坛徽章:
- 1
|
发表于 2007-9-19 16:41:59
|显示全部楼层
以下方法适用于Domino/Notes 4.5x,4.6x。
在Domino/Notes使用过程中,如果用户邮箱过大,管理员可以在邮箱模板中的“memo”表单的Queryopen事件中加以下代码,限制用户邮箱过大。(其中50000000表示邮箱限额为50M)
Sub Queryopen(Source As Notesuidocument,Mode As Integer,Isnewdoc As Variant, Continue As Variant)
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Dim size As Double
Dim Quota As Double
size = db.size
if size > 50000000 Then 'bytes
Msgbox “您的信箱已太大,请先删除部分信件后再压缩信箱,压缩完成后,即可写信。”
Continue = False
Exit Sub
End If
End Sub |
|