JEMH - Remove Signature in Forwarded Message on Create Issue

Hi,

My firm auto-appends lengthy signatures to our emails, I would like to filter out those signatures when i create an issue in JIRA via JEMH. The issue is, when I am forwarding an email into JIRA, I don't want to lose any forwarded email beneath the signature.

This is my content              <-- Keep This
                                <-- Keep This
This is my very long signature  <-- Cut This
Signature Line 2                <-- Cut This
Signature Line 3                <-- Cut This
....                            <-- Cut This
Signature Line 15               <-- Cut This
                                <-- Keep This
From: someoneelse@firm.com      <-- Keep This
To: me@firm.com                 <-- Keep This
...                             <-- Keep This 
This is forwarded content       <-- Keep This
                                <-- Keep This
This is his very long signature <-- Cut This
Signature Line 2                <-- Cut This
Signature Line 3                <-- Cut This
....                            <-- Cut This
Signature Line 15               <-- Cut This

Can JEMH do this?

Thanks!

Marc

2 answers

1 accepted

Hi both. Depending on your JEMH version, there are several fields that can be used:

Create/Comment Body Delimiter Regexps

This regexp allows the index into the post-processed email body content, during Create and Comment, to identify the start of content to be stripped. This can remove signatures quite readily, but has the consequence that when forwarding an email for creation, 'included' content below the signature would be lost.

Comment Body Delimiter Regexps

This regexp is just like the above, but for Comment only, thereby addressing the problem of stopping 'creating' emails being stripped, but of course, resulting in signatures left on issues created by email.

Body CleanUpRegexp

This field should have allowed you to do multiline matching. Looks like the original intent only called for single line matching....

I've just implemented the necessary changes to support multiline https://thepluginpeople.atlassian.net/browse/JEMH-1497 , it will be in 1.4.11

What JIRA editions are involved here, I'll push an update out?

We are currently on JIRA v5.2.11 -- Thanks!

Thanks!

We are currently on JIRA

1.3.42 just released has the update for 5.2.3+

I have been trying to do this via "Body Cleanup Regexps", but it doesn't seem to be multi line select?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

211 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you