JEMH - Remove Signature in Forwarded Message on Create Issue

Marc Dworkin June 27, 2013

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

0 votes
Answer accepted
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2013

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?

Marc Dworkin June 29, 2013

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

Marc Dworkin June 29, 2013

Thanks!

We are currently on JIRA

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 29, 2013

1.3.42 just released has the update for 5.2.3+

0 votes
Marc Dworkin June 28, 2013

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