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

This widget could not be displayed.

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.

This widget could not be displayed.
Pedro Souza Atlassian Team Apr 02, 2014

Hello,

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*----/

or



/_____________*/

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!

Cheers,

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.

This widget could not be displayed.

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

This widget could not be displayed.

Hi @Derek Sheeman

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

Thanks

 

This widget could not be displayed.

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

This widget could not be displayed.

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,
Paulo
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
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...

123 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