• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 632
  • Last Modified:

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>?
0
westerntx
Asked:
westerntx
  • 3
  • 2
1 Solution
 
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)
0
 
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.
0
 
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.
0
 
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?
0
 
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.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now