Any exist solution to parse html email by some lib from incoming emails

Gonchik Tsymzhitov Community Champion Jun 21, 2017

Hi! 

I know JEMH is cool, but we have a one of own legacy mail handler, with a big logic.

Anybody knows some solution for parse html email to wiki format for jira. 

My aim is good formatting, 

 

Thank you.

 

Gonchik Tsymzhitov

1 answer

1 accepted

This widget could not be displayed.

Did you know that JEMH has pluggable Field Processor API's that you can implement your own 'big logic' part?  Then, you'd get the inline image support / HTML tag conversions, body cleanup (removal) and signature reply-to removals that JEMH did already?

Beyond that, you'll have to write a HTML parser that does the conversion, there is no open source library I know of that will do the conversion to wiki markup for you.

Gonchik Tsymzhitov Community Champion Jul 10, 2017

It sounds a perfect, 

but for use Processor API, I need to pay? Is it correct?

 

Thanks

Yes, JEMH would need to be licensed.  you would be creating an Addon for JEMH, that contains your handers processing code.  In a JEMH Profile configuration, you pick it as a 3rd part Field Processor, it gets the post html-wiki converted text and can then extracted through your big logic, any values that you need to set in custom fields etc.  Output of such a Field Processor module is a Map of found keys/values (ie your logic is just concerned about 'extracting' the data, not manipulating JIRA issues etc.

Andy,

what do you think to use JIRA bundle from JIRA Service Desk?

Atlassian-Plugin-Key
com.atlassian.jira.jira-email-processor-plugin
Bundle-Name
jira-email-processor-plugin
Bundle-SymbolicName
com.atlassian.jira.jira-email-processor-plugin


Thanks for your advice.
You get me a good idea.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

137 views 1 3
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