To log emails by project, we've got about 1600 mail transport rules configured where if a string is detected in the subject it sends a bcc of the email into a corresponding mail-enabled public folder.
For example, if subject contains the project "ABCD-123", send bcc to ABCD-123@domain.com (this is the alias of the PF). Same for ABCD-124 or WXYZ-999, etc. All of our projects use this pattern and have a rule and PF.
Is there a way to have one rule to replace all of these, maybe using regex pattern match to accomplish this?
If subject contains (([A-Za-z]{4})-(\d{3})) then send bcc to (([A-Za-z]{4})-(\d{3}))@domain.com