Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-10827

Improve parsing of multipart (HTML) emails



    • UIS:
    • Support reference count:
    • Feedback Policy:
      We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.


      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      When JIRA is configured to create/comment issues from email, it may encounter an email with arbitrary MIME parts (text, HTML, images, videos, etc). Currently JIRA will try to rip such mails apart, attempting to extract text from the HTML, and attaching other bits as attachments.

      This is a problem because:

      • No attempt is made to identify "alternative" parts which mean the same thing. In the case where there is a text/plain part and a text/html part, JIRA will extract the text/plain part as the body of the message, but then as well attempt to attach the text/html part to the issue. This usually fails however, as text/html parts when inline in a message usually denote the HTML version of the plain text, and thus mail clients don't usually bother to attach a filename to the part. This causes a warning message to appear in the logs (see JRA-10825 for more info):

        Cannot create attachment without a filename - inline content?

        We need to come up with a way to identify these alternative parts, and ignore the redundant parts so that they are not attached to the JIRA issue.

      • This may completely lose the meaning of the email. For example, the position of inline images may have an impact on the meaning of the message.


        1. Email.png
          25 kB
          Janet Albion
        2. IssueDescription.png
          10 kB
          Janet Albion

          Issue Links



              Unassigned Unassigned
              jefft Jeff Turner
              44 Vote for this issue
              36 Start watching this issue