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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.3.42 just released has the update for 5.2.3+
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have been trying to do this via "Body Cleanup Regexps", but it doesn't seem to be multi line select?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.