Capturing full email headers

Is there a way to configure the JIRA incoming mail handler to capture all of the headers and put them into a multi-line text field?

2 answers

1 accepted

0 votes
Accepted answer

Well, yes as per title, no as per description. JEMH exposes the email message object and can render a Comment Header as part of the description and every comment that comes in by email after that.

Thing is, you say 'all headers', that can be a lot of stuff, the assumption is that you actually want specific headers like the usual addressee data?

Mapping incoming headers to custom fields on create sounds like something JEMH could do in the future without too much effort, its not been a case asked for previously. How did you envisage that working, just a great blob of text or stored one field per-header?

Well, the furture is nice, but my need for this capability is more immediate. Thanks for the pointer to JEMH.

Can you answer the question, what do you actually want to do, capture all or route specific headers? Future for me probably means something different to your view ;)

My time horizon is measured in days. So immediate is much closer to right now.

What is needed is the ability to capture ALL of the email headers and put them in a singe multi-line custom field.

So, I want all of the received-from headers, all of the X-* headers, everything that is a header.

That is immediate not future! Well, either you have to write a mail handler from scratch to do that, in days, or be a little more patient! Implementing generic features like that in JEMH is something I do all the time, but I have priorities too.

What JIRA version are you currently on?

I think we are running v6.1.x at the moment. We do have an external email processor that does some of what we need, but it is written by someone else in PHP.

And it is a bi of a bear to configure. Might have to bite the bullet and do it anyway.

K, its something I'll probably add to JEMH soon in any case, just because ;)

If you are going to be adding things, another `nice to have' would be the ability to capture any arbitrary header and put it into a custom field.

EMH is another option, you can select headers you want to display from a multi select dropdown and the headers will be added in JIRA description and comments.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,304 views 12 19
Read article

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