代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
Domino
】
清理收件夹的代理Code for CleanupInbox agent
作者:
乙洁
/ 发布于
2015/1/22
/
1390
eanupInbox – moves older documents out of inbox Sub Initialize Dim s As New NotesSession Dim db As NotesDatabase Set db = s.CurrentDatabase Dim dr1 As notesdaterange Dim v As notesview Dim dc1 As NotesDocumentCollection Dim gracedoc As NotesDocument Dim stime1 As New NotesDateTime("0/0/0") Dim etime1 As New NotesDateTime("Today") Set gracedoc = db.GetProfileDocument("inboxgracedays") Dim graceval As Variant Dim gracedays As Integer ' if no profile doc has been prepared, default is 90 days If gracedoc.HasItem("gracedays") Then graceval = gracedoc.GetItemValue("gracedays") gracedays = Cint(graceval(0)) Else gracedays = 90 End If etime1.AdjustDay(-1*gracedays) ' create a daterange excluding docs newer than graceperiod Set dr1 = s.CreateDateRange() Set dr1.StartDateTime = stime1 Set dr1.EndDateTime = etime1 'dc1: collection of 'old' documents from inbox (before or on Today - gracedays) Set v = db.GetView("($Inbox)") Set dc1 = v.GetAllDocumentsByKey(dr1) 'pull out expired docs dc1.RemoveAllFromFolder("($Inbox)") End Sub 'SetInboxGracePeriod agent – sets the grace period for inbox Sub Initialize Dim s As New NotesSession Dim db As NotesDatabase Set db = s.CurrentDatabase Dim gracedoc As NotesDocument Dim gracedays As Integer Dim inputgracedays As Integer Dim maxdays As Integer Dim graceval As Variant Dim gracevar As Variant maxdays = 1000 Set gracedoc = db.GetProfileDocument("inboxgracedays") If gracedoc.HasItem("gracedays") Then graceval = gracedoc.GetItemValue("gracedays") gracedays = Cint(graceval(0)) Else gracedays = 90 End If getInput: inputgracedays = -1 gracevar = Inputbox("Days to retain in Inbox? (currently " & gracedays & ")" ) If (gracevar <> "") Then inputgracedays = Cint(gracevar) End If While (inputgracedays > maxdays) Msgbox("Maximum of " & maxdays & " days exceeded") Goto getInput Wend If inputgracedays <> -1 Then gracedays = inputgracedays End If Set gracedoc = db.GetProfileDocument("inboxgracedays") gracedoc.ReplaceItemValue "gracedays",gracedays Call gracedoc.Save(False,False) End Sub
试试其它关键字
收件夹
同语言下
.
LotusDomino页面自动注册用户
.
多 Notes 文档中附件批量汇总到 Notes 文档中
.
多 Notes 文档中附件批量导出到本地系统
.
使用lotusscript获得群组中的用户列表_lotus notes
.
利用程序增加角色
.
关闭计算机
.
检验数字域
.
利用程序获取计算机名称及登陆用户名
.
清理收件夹的代理Code for CleanupInbox agent
.
邮箱中显示中文等价名
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
乙洁
贡献的其它代码
(
2
)
.
清理收件夹的代理Code for CleanupInbox agent
.
ASP连接LOTUS数据库
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3