JIRA doesn't create comment when using IMAP

So basically we have set up an IMAP email inbox to receive jira emails and distribute them to different mail folders with mail rules. A jira mail handler has been set up to monitor each folder and the option is to "create a new issue or add a comment". Each folder corresponds to a different pair of project and issue type. "Strip Quotes" is checked and default reporter has been added just in case. The rest is following the jira default. Also the outgoing "From" is set to use the IMAP email address.

During my testing, new jira can be created successfully. However, comments cannot when I replied to a new jira email. I found out the replied email was routed to the correct folder but somehow not processed by the mail handler. When I used the test option in mail handler, it only says the test was successful as below without mentioning what has been done or what was wrong -- it's supposed to create a comment.

1 message read from the server.
Found 1 message(s) in the imap folder.

(and that's it)

As a comparison, we used POP option before and it can create new jira and comment from reply but we have to switch to IMAP due to some IT requirements.

Did anyone experience the same issue? Please advise me.

6 answers

1 accepted

This widget could not be displayed.

Are you referring your folder in the incoming IMAP mailbox config?

Log Email Protocol details to see what is happening, the answer will be there:

- https://confluence.atlassian.com/display/JIRA/Logging+email+protocol+details

This widget could not be displayed.

Can anyone help?

This widget could not be displayed.

What is the default account you are using in your mail handler? If the person responding to the JIRA email does not have a JIRA account then it will default to the user you specified. If you set a default user, does that user have permission to add comments in that project?

This widget could not be displayed.

Yes, the default account is a registered jira user with permission to add comment. In my test, I also tried a different jira user (non-default but also with permission) to reply to the jira email. Pop worked but not IMAP -- no error or anything as I mentioned earlier.

How can I investigate it? Is there any log I can turn on to troubleshoot?

Thanks.

This widget could not be displayed.

I processed two emails respectively: one should create a new jira and the other one should add a comment to the existing jira.

1. It didn't create a new jira with this error: javax.mail.MessagingException: Unable to load BODYSTRUCTURE

2. It didn't add comment with this error: [com.atlassian.mail.MailUtils] IOException whilst getting message content BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 2 before EOF, the 10 most recent characters were: "al\r\nX-MS-H"

Can you advise how I can troubleshoot or fix these issues?

Thanks.

-Jack

This widget could not be displayed.

#2 issue has been resolved and it was an IMAP config issue.

#1 is still open.

@jack wang what is the IMAP config issue here? I also see this error. Thanks in advance.

I am seeing this error too and am interested in the fix.

Too bad he didn't post the solution. Now I'll have to open a ticket with Atlassian.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

111 views 15 7
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