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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to