ImageVerifierCode 换一换
格式:DOCX , 页数:13 ,大小:201.03KB ,
资源ID:9659019      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/9659019.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Domino限制附件大小设置.docx)为本站会员(b****7)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

Domino限制附件大小设置.docx

1、Domino限制附件大小设置Domino 技巧: 如何限制附件大小大家应该知道,现在的免费(或收费),一般都有限制附件大小的功能,当某些附件超过一定容量后,就不能发送,其实Domino Server也有同样的功能,而且设置非常简单。首先,我们合用Domino Administrator打开我们的Domino Server,选中在最右边的Configuration Tab,选中Server -Configuration ,选择编辑当前服务器的Configuration Document. 在Configuration Document 中的Router / SMTP - Restriction

2、and Controls - Restriction中有一这可以设置 Maximum message size,只需要在这里指定允许的最大附件容量即可。建议不要将附件容量设的太大,不然用户的可能会很快的增肥.此方法在Domino R5 & R6下试验通过,设置完成后,需要重新启动Domino Server,或直接使用更新命令。Domino Server可以设置某些附件较大的,在空闲的时候再发送,其实设置就是限制附件的大小。我们可以在 Send all messages as low priority if message size is between:进行设置。还没有完成设置呀. 修改用户模

3、板方法来控制附件大小:相信作为网管的兄弟姐妹们跟我一样,为了限制附件的大小伤透脑筋!如果在服务器的配置文档中来设置,一是在一台服务器的部是不生效的,二是多台服务器时,即使生效,会产生大量的大附件滞留在服务器的mail.box中,我想修改模板是最好的选择了:打开模板,在共享操作的地方找到发送(S),发送并归档(E),在公式的前面加入: x:=Integer(Sum(Attachments 0; AttachmentLengths; 0)/1024); If(x5120;Do(Prompt(OK;提示!;附件超过5120K将不能发送!附件大小共: + Text(x)+ K;Return(); 再修

4、改便笺表单,选择表单属性,去掉关闭时 后面的小叉就可以了.-1.打开模板,在共享操作的地方找到发送(S),发送并归档(E),在公式的前面加入: x:=Integer(Sum(Attachments 0; AttachmentLengths; 0)/1024); If(x5120;Do(Prompt(OK;提示!;附件超过5120K将不能发送!附件大小共: + Text(x)+ K;Return(); 再修改便笺表单,选择表单属性,去掉关闭时 后面的小叉就可以了.2.现在以 NOTES 6.51为例(我不知道以前久版本是不是一样)模板的名字是:mail6.ntf(在NOTES目录中)打开方式 可

5、以 直接在工作台 打开-指定服务器(不要去找数据库),在下面文件里 直接输入 mail6.ntf (R5应该不是mail6.ntf,可能是mail5.ntf吧),就可以打开,用Designer 对其修改然后象你说的找到相应的表单(便笺很容易找的)Memo,找到操作,修改就可以! 更改模版后,需要重新替换原有模版,设置才能生效! 另外:关于在Designer5.0中更改公式无法成功的问题,我查询了IBM官方,确实是版本的问题,在5.x系列中都存在此问题 具体参考 -1.ibm./support/docview.wss?uid=swg21101466-关于根据系统语言,显示不同语言的提示,方法有两

6、种请不要使用Designer5.0更改原因参考 -1.ibm./support/docview.wss?uid=swg211014661、修改公式 Language:=RegQueryValue(HKEY_LOCAL_MACHINE;SYSTEMCurrentControlSetControlNlsLanguage;Default);Size:=Integer(Sum(Attachments 0; AttachmentLengths; 0)/1024000);If(Size 10 ; If(Language = 0804;Do(Prompt(Ok;注意:附件大小超过10M限制!;当前附件大小为

7、+ Text(Size)+ M,此将不能发送!+Char(13)+如有任何问题,请联系情报信息部(TEL:351);Return();Do(Prompt(Ok;Tips:Attachments Over 10M Bytes!;The Current Attachments is + Text(Size)+ M bytes,this mail cannot send!+Char(13)+If you have any questions,please contact misgroup(TEL:351);Return(););2、使用Lotus Script(LS用法类似于VB,但是对于一般用户来

8、说,由于Domino类的结构不清晰,使用起来很麻烦)此方法代码相对较长,不推荐使用,我也没学过LS开发,可能有错误之处,仅供学习使用以下只包含核心代码 Sub Initialize Dim s As New NotesSession Dim db As NotesDatabase Dim curDB As NotesDatabase Dim dbDir As NotesDbDirectory Dim serverName As String Set db = s.CurrentDatabase If db.Server = Then serverName = (local) Else serv

9、erName = db.Server End If If serverName = (local) Then Set dbDir = New NotesDbDirectory() Else Set dbDir = New NotesDbDirectory(serverName) End If Set curDB = dbdir.GetFirstDatabase(TEMPLATE_CANDIDATE) Do Until curDB Is Nothing Call countThis(curDB, db) Set curDB = dbDir.GetNextDatabase LoopEnd Sub

10、Sub countThis(curDB As NotesDatabase, reportDB As NotesDatabase) Dim curSize As DBSizeInfo On Error Resume Next Set curSize = New DBSizeInfo(curDB) Call curSize.count If curSize.AttachmentCount 0 Then Call curSize.save(reportDB) End IfEnd SubPublic Class DBSizeInfo Private db As NotesDatabase The da

11、tabase to be counted Public DBSize As Variant Size of the database Public AttachmentSize As Variant Public AttachmentCount As Variant Public DocumentCount As Variant Public hasError As Boolean Sub new (curDB As NotesDatabase) Set db = curDB hasError = False End Sub Public Function Count As Boolean D

12、im doc As NotesDocument Dim dc As NotesDocumentCollection Dim countResult As Variant Dim sizeResult As Variant On Error Goto Err_Count If Not db.IsOpen Then Call db.Open(,) If Not db.IsOpen Then We could not open it Print Cant open & db.FilePath Count = False Goto Exit_Count End If End If DBSize = d

13、b.Size AttachmentCount = 0 AttachmentSize = 0 DocumentCount = 0 Set dc = db.AllDocuments Set doc = dc.GetFirstDocument Do Until doc Is Nothing If doc.HasEmbedded Then Call getAttachmentSizes(doc) End If DocumentCount = DocumentCount + 1 Set doc = dc.GetNextDocument(doc) Loop Count = True If we got h

14、ere it workedExit_Count: Exit Function Err_Count: Print Error$ & in Count in & db.FilePath & in line & Cstr(Erl) Count = False hasError = True Resume Exit_Count End Function Public Sub Save(reportDB As NotesDatabase) Dim doc As NotesDocument Dim v As NotesView Dim searchkey(0 To 1) As String On Erro

15、r Goto Err_Save Set v = reportDB.GetView(LookupByServerAndPath) If v Is Nothing Then Set doc = New NotesDocument(reportDB) Else If db.Server = Then searchkey(0) = (local) Else searchkey(0) = db.Server End If searchkey(1) = Lcase(db.FilePath) Set doc = v.GetDocumentByKey(searchkey,True) If doc Is Not

16、hing Then Set doc = New NotesDocument(reportDB) End If End If Call doc.ReplaceItemValue(Form,SizeReport) Call doc.ReplaceItemValue(DBSize,Me.DBSize) Call doc.ReplaceItemValue(AttachmentSize,Me.AttachmentSize) Call doc.ReplaceItemValue(AttachmentCount,Me.AttachmentCount) Call doc.ReplaceItemValue(Doc

17、umentCount,Me.DocumentCount) If hasError Then Call doc.ReplaceItemValue(ErrorFlag,1) Elseif doc.HasItem(hasError) Then Call doc.RemoveItem(ErrorFlag) End If If db.Server = Then Call doc.ReplaceItemValue(ServerName,(local) Else Call doc.ReplaceItemValue(ServerName,db.Server) End If Call doc.ReplaceIt

18、emValue(FilePath,Lcase(db.FilePath) Call doc.Save(True,True) Exit_Save: Exit Sub Err_Save: Print Error$ & in & db.FilePath Resume Exit_Save End Sub Private Sub getAttachmentSizes(doc As NotesDocument) Dim attNames As Variant Dim att As NotesEmbeddedObject Dim result As Variant result = 0 On Error Go

19、to Err_getAttachmentSizes attNames = Evaluate(|Attachmentnames|, doc) If attNames(0) Then Forall an In attNames Print Checking Attachment & an Set att = doc.GetAttachment(an) result = result + att.FileSize Me.AttachmentCount = Me.AttachmentCount + 1 End Forall End If Exit_getAttachmentSizes: Me.Atta

20、chmentSize = Me.AttachmentSize + result Exit Sub Err_getAttachmentSizes: Print Error$ & in getAttachmentSizes doc: & doc.UniversalID Resume Exit_getAttachmentSizes End Sub End Class Declare Function GetSystemDefaultLCID Lib kernel32 () As LongFunction GetOsType() As String Dim ret As StringSelect Ca

21、se Hex(GetSystemDefaultLCID) Case 804: ret = input chinese tips Case Else: ret = input english tips End SelectGetOsType = ret End Sub想修改模板是最好的选择了:打开模板,在共享操作的地方找到发送(S),发送并归档(E),在公式的前面加入: x:=Integer(Sum(Attachments 0; AttachmentLengths; 0)/1024); If(x5120;Do(Prompt(OK;提示!;附件超过5120K将不能发送!附件大小共: + Text(x)+ K;Return(); 再修改便笺表单,选择表单属性,去掉关闭时 后面的小叉就可以了.

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1