How to Strip the Old Reply Data from Email in JIRA When Using Outlook

When replying to a received HTML format notification from an issue in JIRA, the old reply data does not strip out properly when using Outlook as the email client.

In JIRA 4.4.4, I have found that even if I enable “stripquotes=true” or not, JIRA does not strip quotes or signatures from email messages.

There are many methods to resolve (or at least a workaround to) this problem, most of which can be found here.

However, I have found that the best method (whilst not perfect, does a pretty good job) is the following:

Create two services. One being your standard mail handler for your project, and the second being a regex handler (for replies).

E.G.:

Service #1 (default project mail handler):

Handler: Create or Comment Handler

Handler Parameters: project=ITHD,createusers=false,issuetype=1,stripquotes=true,ccwatcher=true,splitregex=/From: *|On .*|wrote:|(ITHD).*|(Innovation in the*)|(—-Original Message—-)/

Service #2 (Regex handler):

Handler: Regex Comment Handler

Handler Parameters: project=ITHD,createusers=false,issuetype=1,stripquotes=true,ccwatcher=true,splitregex=/From: *|On .*|wrote:|(ITHD).*|(Innovation in the*)|(—-Original Message—-)/

This will allow any replies to tickets to have the regex enabled and applied. However, I have not managed to get the initial mail handler to apply regex on create issue. If anyone has any comments, please let me know!

Advertisements

3 thoughts on “How to Strip the Old Reply Data from Email in JIRA When Using Outlook

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s