Next Gen Mail Handler - html formatting, remove email footer, ...

Stanislav Slovik June 7, 2021

Hi,
I am testing Next Gen Mail Handler within Jira, but there are few points, which are behaving differently in compare to Classic Mail Handler and I cannot find, how to configure it:

1. Incoming email, which contains some html formatting (e.g.: colored text,...), is parsed into description field with tags
Example with tags:
*{color:#222222} *Testing*{color}**{color:#D8292F} *Company*{color}*{color:#D8292F}{color}

Wished parsing should look like:
Testing Company

2. Remove email footer and keep only relevant part from email body
-> I've tried to play around with Regular expressions to set value for description field
-> regex " ([^\s]+) " shows only first line from email body
-> regex " ^(.*?)(Start footer) ", where "Start footer" is beginning of footer, but regex for some reasons considers only first line from email body and therefore output is incorrect

3. Remove embedded image (images, which are rendered in email body from external hyperlink)
-> is there any configuration for that ?

4. When user is replying to Jira ticket comment through email client, then full "email chain" is kept
-> can it be somehow handled and email chain removed ? Basically to keep in Jira comment only actual reply

I would be grateful, if you could provide me also some working examples, how can I deal with mentioned points.

Many thanks

0 answers

Suggest an answer

Log in or Sign up to answer