Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-7236

Problem forwarding mails that have failed to be processed when reading against an imap mailbox

    XMLWordPrintable

Details

    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

      Attachments

        Activity

          People

            dylan@atlassian.com Dylan Etkin [Atlassian]
            dylan@atlassian.com Dylan Etkin [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: