-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF49, 11.x, 2021.4
-
Component/s: IMAP Connector
-
Release Notes Summary:Emails with attachments without Content-Disposition are correctly collected.
-
Tags:
-
Backlog priority:800
-
Sprint:nxplatform #36
-
Story Points:3
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.