moving public folder messages around
hiI havex1smtp mail enabled exchange server 2007 public folder. this smtp email address will recieve messages with pre-formatted subject lines (coming from a web form)I need to either create a rule or a vbscript that can detect the arrival ofa new message, check the subject line and then move it to a given sub-folder(there will be x5 sub folders) based on the subect line (so if the 1st word of the subject line is 'general' then move it to the 'general' sub-folder, if the 1st work is 'question' move it to the 'question' sub-folder' etc. etc.)so far trying to use rules I have only been able to move a copy of the orginal message into a sub-folder, the original stays in the parent folderI would like to use the vbscript method if possible as I have done something like this before for public folders on Exchange 5.5, but I cannot see how to run/create vbscript for public folders on Exchange 2007can vbscript be run against public folder any more, or do I have to try and learn to do this with powershell now ?any pointers anyone ?thanks_scott
July 7th, 2009 6:57pm

Why not use transport rule? a. Launch EMS b. Input the following cmdlets $Condition1 = Get-TransportRulePredicate SentTo $Condition1.Addresses = @((Get-MailPublicFolder -id "PublicFolderDisplayName")) $Condition2 = Get-TransportRulePredicate SubjectContains $Condition2.Words = @("General") $Action1 = Get-TransportRuleAction RedirectMessage $Action1.Addresses = @((Get-MailPublicFolder -id "PublicFolderDisplayName")) New-transportrule -name "RedirectoPF" -condition @($Condition1, $Condition2) -Action @($Action1) c. Test it. Well, I have tested it in the lab (Exchange 2007 SP1), and it works Notes: The only flaw of this method is, we need to create 5 transport rule for 5 subfolders References: Transport Rule Predicates Transport Rule Actions New-transportrule
Free Windows Admin Tool Kit Click here and download it now
July 8th, 2009 9:14am

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

Other recent topics Other recent topics