Exchange 2003 - script to run rules
I am using outlook 2003 and exchange 2003. I have a shared mailbox and folders for the users. I created rules to move incoming mails to the folders. Now i need to run a script so it can happen automatically. the code below is what i got of the net but does not work.'Change the following three constants as desiredConst SHOW_PROGRESS = TrueConst INCLUDE_SUBFOLDERS = FalseConst UNREAD_MSGS_ONLY = 2Dim olkApp, olkSes, olkFolder, olkRuleSet olkApp = CreateObject("Outlook.Application")Set olkSes = olkApp.GetNameSpace("MAPI")'Change Outlook on hte next line to the name of your mail profile'olkSes.Logon "SMS"Set olkFolder = olkSes.GetDefaultFolder(6)For Each olkRule In olkSes'.Mailbox.GetRulesolkRule.Execute SHOW_PROGRESS, olkFolder, INCLUDE_SUBFOLDERS, UNREAD_MSGS_ONLYNextSet olkRule = NothingSet olkFolder = NothingolkSes.LogoffSet olkSes = NothingSet olkApp = NothingThankx in advance
October 9th, 2009 10:22am

Try posting this under DEVELOPER forum to get fast response http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads also some more scripts for you http://gallery.technet.microsoft.com/ScriptCenter/en-us/441e4e39-30d0-405a-905d-81ed35702169Vinod |CCNA|MCSE 2003 +Messaging|MCTS|ITIL V3|
Free Windows Admin Tool Kit Click here and download it now
October 9th, 2009 1:47pm

More information to share with you:Description of programming with Outlook ruleshttp://support.microsoft.com/kb/324568Regards,Xiu
October 12th, 2009 9:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics