Create an Exchange rule

I think what I want to do is quite straightforward but I can't see the how to implement it.

We have some emails coming in to our exchange server from an external source that are duplicates of messages we already have, these are generated from a server outside our control so we can't stop them but they all have INTERNAL at the start of the subject line.

Quite simply what I want to do is get exchange to not delivery / delete any messages where the subject line starts INTERNAL but not any message that contain INTERNAL. So for example 'INTERNAL abc' would be deleted but 're: INTERNAL abc' wouldn't.

I thought I could implement this as a hub transport rule but I can only get that to work when the whole subject line matches, how do I enter INTERNAL followed by a wildcard?
LVL 2
Dave RobinsonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph DalyCommented:
You should be able to accomplish this task using the transport rule called

"When the subject field matches text pattern"

This option allows you to use a regular expression to create the filter which is used to bounce back the message. I have done this in the past however I did have to reach out for help with the regular expression creation.

http://help.outlook.com/en-us/140/ff628740.aspx#SubjectOrBody
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Terry WoodsIT GuruCommented:
The regular expression pattern will likely work is:
^INTERNAL

Open in new window

The ^ matches the start of the string.

If you also require a space character after the word, you can append that onto the end of the pattern.

This advice is based on my experience with regular expressions; not on any experience working with Exchange. However, that pattern syntax is very standardised between languages and tools, so you're unlikely to have trouble with it.
0
Dave RobinsonAuthor Commented:
Sorry for the delay in responding, everything went pretty crazy and I didn't have chance to test out the solution. Have given it a try now and it looks like its working so thank you to both of you for your help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.