Configuring mail handlers to reject an email

Saneth Kumar April 24, 2012

I need to configure the mail handler in a way that it would satisfy the below scenario. Please let me know if this is possible.

Scenario:
An email is sent to the JIRA configured POP Mail Inbox in order to CREATE an issue. However the email is not in the correct format.

We need to email to be rejected and an email should be sent out to the creator saying that his email is not in the specified format.

Is this possible?

2 answers

1 accepted

1 vote
Answer accepted
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2012

To validate a format youd need to be able to describe it, how would you do that? Pluggable validation of incoming email is an interesting idea but isnt implemented in JEMH at the moment, existing filtration rules are limited to blacklisting of addresses, subject (next rel) etc. Depending on the complexity of your data format, you may get a lot of rejects. If you want structured data, and have aConfluence, one possibility is the use of Adaptavist ConfluenceMailFormNg, which presents users with a wiki style form, select/enter text, from which comes a formatted mail, which could then be dealth with by JEMH...

Saneth Kumar April 24, 2012

Thanks Andy, will try this out.. basically this isn't possible without using a plugin or any customization..

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2012

Are you using standard email handler of JEMH? Will it help with a server side rule in the mailbox rather than getting this logic inside Jira? Otherwise you may need to write custom handler https://developer.atlassian.com/display/JIRADEV/Adding+your+own+email+handling+classes

Suggest an answer

Log in or Sign up to answer