Tellier Benoit created JAMES-2116: ------------------------------------- Summary: JMAP: MIME => HTML convertion Key: JAMES-2116 URL: https://issues.apache.org/jira/browse/JAMES-2116 Project: James Server Issue Type: Bug Components: JMAP Affects Versions: master Reporter: Tellier Benoit Assignee: Antoine Duprat Fix For: master
There was an interesting discussion on the mailing list about the HTML composition. Background : If the Apple client sends you a mail with text and an image in the middle, it will represent it as a multipart: {code:java} MULTIPART: BODY 1 text/plain: Here is the picture of my summer vacation BODY 2 img inlined without CID: Corsica picture BODY 3 text/plain: As you can see, I went in Corsica {code} When receiving this, JMAP server is supposed to recompose a nice HTML view of the mail, taking into account all parts of the messages. The corresponding JMAP representation would be: {code:java} htmlBody: <div>Here is the picture of my summer vacation</div> <img src="CID"\> <div>As you can see, I went in Corsica</div> BODY 2 is described with a CID server assigned/generated textBody: Here is the picture of my summer vacation As you can see, I went in Corsica {code} What we are doing right now is: - Don't compute HTML part if not present - Locate the first text part of the message - Display inlined without CID as attachment Our Apple example would become: {code:java} htmlBody: null textBody: Here is the picture of my summer vacation {code} Which is far from ideal. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org