Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete Unread Emails That Are More Than 6 Months OldContent of Delete Unread Emails That Are More Than 6 Months Old.vbsMD5 Hash: 61ECAC881560237F636680EFBC824862 |
||
Const olFolderInbox = 6
Set objOutlook = CreateObject("Outlook.Application") Set objNamespace = objOutlook.GetNamespace("MAPI") Set objFolder = objNamespace.GetDefaultFolder(olFolderInbox) Set colItems = objFolder.Items Set colFilteredItems = colItems.Restrict("[UnRead] = True") For i = colFilteredItems.Count to 1 Step - 1 If DateDiff("m", colFilteredItems(i).ReceivedTime, Now) > 6 Then colFilteredItems(i).Delete End If Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |