How do I filter out carriage returns and line breaks from email received on Exchange 2010/Office 2010

The email is received and processed as text, but contains html <Br> tags, which shows up in the content/body of the email.  How can I create a rule/script/process to strip out the <Br>?
westerntxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

TommySzalapskiCommented:
Run a script on the body of the email. If it's processed as next, not html, then the <br> tags have been replaced with vbCrLf (which is the same as chr(13) & chr(10) ) So just search for them in the body string and replace them with "" (nothing)
westerntxAuthor Commented:
Thanks for your response!

How to run the script on the email server?  The emails needing to be flitered are sent from smartphones.  They need to filtered and reformatted after they come in from the phones, but before they are routed to remote recipients.
TommySzalapskiCommented:
You want to run the script on the server? I'm not sure if that's possible because it means you are messing with other people's mail. I know you can set scripts to run in Outlook on each person's computer, but script rules can only be run in Outlook, not on the server.
westerntxAuthor Commented:
That's what I was thinking- each smartphone owner would need to have an outlook client open that could intercept and process the script.  Is there any other way you can think of?
TommySzalapskiCommented:
I'm not sure if there exists a legal way to parse the text of everyone's email at the server. I think that would be considered a breach of privacy (obviously removing line breaks isn't breaching anything, but if you can parse the body removing line breaks, then you certainly can breach privacy). So I would be very surprised if it's possible.

There are rules that you can make that run on the server and don't require Outlook being open, but all of them operate on the headers (subject, from, to, etc) and none operate on the actual body except the ones that run in Outlook.

If you have Windows 7 or any version that allows concurrent logins I think the Outlook rules do run even if the session is locked. So I think you could have multiple users sharing one computer for the Outlooks. You'd have to test it to be sure.

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
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.