Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.2.2
-
3.02
-
Description
When an email fails to processed by Jira we try to forward the mail on to a specified address. This fails when reading from an IMAP box. The problem is with attachments and the fact that the session has been closed by the time we get to sending the mail through the mail queue.
The problem is:
com.atlassian.mail.MailException: javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.IOException: javax.mail.FolderClosedException
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:160)
at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:47)
at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:55)
at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23)
at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Caused by: javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.IOException: javax.mail.FolderClosedException
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at alt.javax.mail.TransportImpl.send(TransportImpl.java:18)
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:146)
... 7 more