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

This widget could not be displayed.

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

This widget could not be displayed.

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 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 8 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

21 views 0 0
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