Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-10827

Improve parsing of multipart (HTML) emails

XMLWordPrintable

    • 1
    • 32
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? 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
          Email.png
          25 kB
        2. IssueDescription.png
          IssueDescription.png
          10 kB

              Unassigned Unassigned
              7ee5c68a815f Jeff Turner
              Votes:
              64 Vote for this issue
              Watchers:
              55 Start watching this issue

                Created:
                Updated: