Incoming mail not deleted

We are in the process of updating our JIRA installation to 5.2.5 and would like to use the incoming mail feature.

So far we have configured the incoming IMAP mail server, and the test completes successfully. Next, we configure a mail handler to pick up mail from a specific IMAP folder. This also works, it picks up the mail, and it creates an issue as expected.

This is where the real problem comes in. JIRA says that it is deleting the processed mail, but it still shows after the issue has been created. During the next run, the issue will be created for a second time, 3rd and 4th and so on until the mail is manually deleted. We are using Google Apps, so our mail is hosted by Google. The problem does not occur when using POP, but we need IMAP for folder support.

So far I have tried various IMAP settings in Google to see if it makes a difference, but it does not. If we point an ordinary mail client to the mail account, deletions work 100%.

Any ideas?

2 answers

We use JIRA installation 5.2.4 in the organisation and have the same problem. It seem that the problem is not only our problem.

We use IMAP as protocol. After a short time (one day and ca. 2900 issues/mails) the mailserver blocked the mail query user.

A quick answer would like me happy

Unfortunately this is caused by the way Gmail implements the <tt>delete</tt> command and cannot be fixed on JIRA side. When Gmail receives a <tt>delete</tt> command, it only removes the inbox tag but it does not actually delete the message, as stated in Gmail documentation:

Messages that are deleted from an IMAP folder (except for those in [Gmail]/Spam or [Gmail]/Trash) only have that label removed and still exist in All Mail.

Hi Alex,

I don't doubt your comment with regards the the way deletions are handled. That is not the issue here.

In mail clients like Thunderbird the original folder label is removed and the mail moves to All Mail as stated.

The problem with Jira is that the original label is not removed, leaving the mail in the folder it was filtered to and causing Jira to endlessly process the mail. If it only moved to All Mail that would be perfect, but it remains in the original folder...

Hi,

i'm experimenting with issue creation from email. We use Google apps too. The default setting in Gmail is what Alex describes in his answer.

Have tried the Immediately delete the message forever option in IMAP access under the Forwarding and POP/IMAP tab?

Cheers

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,322 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot