Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30062

Handle mails with attachments without Content-Disposition

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Emails with attachments without Content-Disposition are correctly collected.
    • Backlog priority:
      800
    • Sprint:
      nxplatform #36
    • Story Points:
      3

      Description

      As it's allowed by RFC2183, some old and buggy email clients do not set the Content-Disposition header for the attachments.

      => it makes the recognition of the attachments in Nuxeo fail: no image is attached to the document and the content is null.

       

      The presence of this header is currently a requirement in Nuxeo code to detect the attachments: https://github.com/nuxeo/nuxeo/blob/10.10/nuxeo-features/nuxeo-platform-mail/nuxeo-platform-mail-core/src/main/java/org/nuxeo/ecm/platform/mail/listener/action/ExtractMessageInformationAction.java#L336

       

      A solution is needed to handle these messages

       

      Extract of the RFC https://www.ietf.org/rfc/rfc2183.txt :

      2.  The Content-Disposition Header Field
      
         Content-Disposition is an optional header field. In its absence, the
         MUA may use whatever presentation method it deems suitable.
      
         It is desirable to keep the set of possible disposition types small
         and well defined, to avoid needless complexity. Even so, evolving
         usage will likely require the definition of additional disposition
         types or parameters, so the set of disposition values is extensible;
         see below.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: