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

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 ;)

https://thepluginpeople.atlassian.net/browse/JEMH-2313

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

100 views 0 1
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