📄 filter.vbs
字号:
'filter.vbs
Set objSession = CreateObject("MAPI.Session")
objSession.Logon "SCB"
Set objMsgColl = objSession.InBox.Messages
Set objFilter = objMsgColl.Filter
'set the filter properties to filter all messages that are unread, of
'type IPM.Note and were received over 6 months a go
objFilter.Type = "IPM.Note"
objFilter.Unread = True
objFilter.TimeLast = DateAdd("d", -180, Date)
' loop through the Messages collection and display the subject
' for any messages that meet the filter criteria
Set objMessage = objMsgColl.GetFirst()
Do While Not objMessage Is Nothing
'display the subject for the current message..
WScript.Echo objMessage.Subject
'get the next message
Set objMessage = objMsgColl.GetNext()
Loop
objSession.Logoff
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -