专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Lotus

Domino怎么读取自己的邮件

发布时间:2010-06-13 13:33:43 文章来源:www.iduyao.cn 采编人员:星星草
Domino如何读取自己的邮件
需求操作是,点击一个按钮,然后读取出自己12月份的所有邮件 放到一个视图里面去!
请问,这个操作用lotus script如何写呢,涉及到哪些domino类,用到它们的哪些对象。
如果有些代码更好了! 谢谢各位

------解决方案--------------------
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim folder As NotesView
Dim dc As NotesDocumentCollection
Dim strSearchFormula As String
Dim strFolder As String

strFolder="Current Month Mail"
strSearchFormula={ (PostedDate != "" & $MessageType = "" & IsMailStationery != 1 & (Form = "Memo" 
------解决方案--------------------
 Form = "Reply" 
------解决方案--------------------
 Form = "" 
------解决方案--------------------
 Form = "NonDelivery Report" 
------解决方案--------------------
 Form = "Bookmark") )  &  @Month(@If(DeliveredDate != ""; DeliveredDate; PostedDate != ""; PostedDate; @Created) )=@Month(@Now)}

Set db = session.CurrentDatabase
Set dc=db.Search(strSearchFormula,Nothing,0)
If dc.Count>0 Then
Call dc.PutAllInFolder(strFolder)
End If


End Sub
------解决方案--------------------
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim folder As NotesView
Dim dc As NotesDocumentCollection
Dim strSearchFormula As String
Dim strFolder As String

strFolder="Current Month Mail"
strSearchFormula={ (PostedDate != "" & $MessageType = "" & IsMailStationery != 1 & (Form = "Memo" 
------解决方案--------------------
 Form = "Reply" 
------解决方案--------------------
 Form = "" 
------解决方案--------------------
 Form = "NonDelivery Report" 
------解决方案--------------------
 Form = "Bookmark") )  &  @Month(@If(DeliveredDate != ""; DeliveredDate; PostedDate != ""; PostedDate; @Created) )=@Month(@Now)}

Set db = session.CurrentDatabase
Set dc=db.Search(strSearchFormula,Nothing,0)
If dc.Count>0 Then
Call dc.PutAllInFolder(strFolder)
End If


End Sub 
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: