Removing subject content from incoming emails

Summary

The Pre Field Processor Subject Clean-up Regexp feature will remove any matching content from the Subject of the email. This feature allows you to remove sensitive data that may have been sent within the Subject of the email. e.g. an employee Id number.

For performance reasons .* isn't allowed - use more specific patterns instead.

Adding a Subject Regex

To remove content from the Subject you must add a Regex to Pre Field Processor Subject Clean-up Regexes which can be found within JEMHC > Profile > Project Mapping > Pre-Processing

Now you will be able to add the relevant Regex that will remove content from the subject.

Removing Forward Prefix

Typically when emails are forwarded they will contain a Subject Prefix (e.g. Fw:, Fwd:). By default the Prefixes checked here are guided for English format emails that use Fw and Fwd. Forwarded Email Subject Prefixes can be adapted to include more prefixes so that they can be matched by JEMHCloud.

When the Prefix has been matched by JEMHCloud it will result in the Prefix being removed and any Post Field Processor Body Delimiter/Clean-up from being applied.

Pre Field Processors Body Clean-up/Delimiter will still be applied.

Example

In this example we are using the Pre Field Processor Subject Clean-up Regex to strip out Employee Id’s (ID=12032) from the subject of an incoming email. Here is what our incoming email looks like:

MIME-Version: 1.0 Received: by 10.223.112.12 with HTTP; Sat, 18 Jun 2011 22:42:26 -0700 (PDT) Date: Mon, 10 2015 2015 17:42:26 +1200 Subject: Please help me. ID=12032 From: ryan@thepluginpeople.com To: changeme@thiswontwork.com Content-Type: text/plain; charset=UTF-8 Hello Support, I have a issue, please help me.

To remove the ID we are using the following regex:

ID=([0-9]+)

Here is the setting in JEMHC:

When this email is run as a test case against our profile, we see the following result: