Is there a way to have JIRA strip attachments from incoming email?

We are utilizing some mailboxes for JIRA to update tickets, the problem is the dozens and dozens of small attachments from users sig files are all getting added to the issue as well. I can find no way to prevent this without turning off attachments entirely.

Is there a way within JIRA to solve this?

6 answers

I have not, the mail handling in JIRA is fairly immature. It really seems like there should be a 'allow attachments y/n' button in the mail handler configs.

0 votes
Pedro Souza Atlassian Team Apr 02, 2014


Yes it's possible.

it would be to configure an 'Add a comment before a specified marker or separator in the email body' mail handler:

On the Create a new issue or add a comment to an existing issue dialog box, complete the following fields/options:

Split Regex:

Specify a regular expression matching the text that separates the content of the email message mail body from the signature content in the body.

For example:

/----\s*Original Message\s*----/



Please Note:

  • The regex must begin and end with a delimiter character, typically '/'.
  • Commas are not allowed in a regex, as they are used to separate each mail handler field/option when they are integrated into a JIRA service and there is not (as yet) an escape syntax.

More of this subject on this documentation

I holpe it helps!


Pedro Souza.

I am a bit uncertain how this can be used to prevent attachments from being processed. I had reviewed that documentation prior to the question.

Not all sig files start the same way...

This method seems to work to strip out old contents from the email thread but it does not prevent attachments from make it to the work item.

What Carlos said is true, this usually chops out the excess in a reply chain, but all attachments still wind up on the issue. Sometimes, the same sig file attachments show up dozens of times each, once for every time someone replies to the chain with the sig images in it.

Derek, I'm having the same problem. Did you find a solution?

Hi @Derek Sheeman

Did you ever manage to get feedback on this?  Is there a plugin that perhaps allows one to do this?



I have never found a solution to this, it plagues us to this day.

While we understand that the answer does not address Derek's question, we also think that removing the posted response is not ideal as it might indirectly resolve other's customers issues as the procedure is completely valid to strip mail quotes and signatures.

Being a community forum, Atlassian Answers provides anyone to set a response as not useful by simply downvoting it. That way, customers with the same question will see that the provided response is not useful at all. Please feel free to add your comments to the topic and downvote it, as I already did.

If I can be of any further assistance, please, let me know.
Kind Regards,
Atlassian Support

Now I'm curious, after 3 years, what prompted this response?  It adds nothing to the thread.


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,935 views 19 22
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