You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2021/04/04 12:53:00 UTC

[jira] [Created] (JAMES-3536) Email/set create bodyStructure support

Benoit Tellier created JAMES-3536:
-------------------------------------

             Summary: Email/set create bodyStructure support
                 Key: JAMES-3536
                 URL: https://issues.apache.org/jira/browse/JAMES-3536
             Project: James Server
          Issue Type: Sub-task
          Components: JMAP
    Affects Versions: 3.6.0
            Reporter: Benoit Tellier
            Assignee: Antoine Duprat


https://jmap.io/spec-mail.html#emailset

In addition to the helpers for composing classic multipart emails (alternative text/plain + text/html and attachments), RFC-8621 allows also to create emails by specifying their bodyStructure:

{code:java}
If a bodyStructure property is given, there MUST NOT be textBody, htmlBody, or attachments properties.

If given, the bodyStructure EmailBodyPart MUST NOT contain a property representing a header field that is already defined on the top-level Email object.
{code}

Specifying bodyStructure within Email/set create entries is so far not supported by James.

*How*

 - EmailCreationRequest needs to have a bodyStructure field
 - EmailCreationRequest::toMime4JMessage needs to handle the cases when bodyStructure is specified.

*Definition of done:*

Integration tests for Email/set create bodystructure, referencing both blobs (via blobId) and bodyValues.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org