'MessagingException creating comment Unable to load BODYSTRUCTURE' Due to Digitally Signed Email
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
The following appears in the atlassian-jira.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2011-01-04 17:03:03,984 JiraQuartzScheduler_Worker-1 WARN ServiceRunner Jira-Firmware [service.util.handler.AbstractCommentHandler] MessagingException creating comment Unable to load BODYSTRUCTURE
javax.mail.MessagingException: Unable to load BODYSTRUCTURE
at com.sun.mail.imap.IMAPMessage.loadBODYSTRUCTURE(IMAPMessage.java:1280)
at com.sun.mail.imap.IMAPMessage.getContentType(IMAPMessage.java:443)
at com.atlassian.mail.MailUtils.getContentType(MailUtils.java:641)
at com.atlassian.mail.MailUtils.isPartPlainText(MailUtils.java:598)
at com.atlassian.mail.MailUtils.extractTextFromPart(MailUtils.java:510)
at com.atlassian.mail.MailUtils.getBody(MailUtils.java:153)
at com.atlassian.jira.service.util.handler.NonQuotedCommentHandler.getEmailBody(NonQuotedCommentHandler.java:39)
at com.atlassian.jira.service.util.handler.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:77)
at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:108)
at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:189)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Cause
JIRA has received a digitally signed email in one of the email boxes that it monitors.
Resolution
Unfortunately, JIRA is currently incapable of reading digitally signed emails. JRA-18156 is the feature request for this.
Was this helpful?