Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle mail multipart on the client #1395

Open
MonsieurLanza opened this issue May 24, 2019 · 2 comments
Open

Handle mail multipart on the client #1395

MonsieurLanza opened this issue May 24, 2019 · 2 comments
Labels

Comments

@MonsieurLanza
Copy link
Contributor

Two cases :

message is unencrypted :

MIME Parsing is done by the backend, client will receive a fully constructed message json.

message is encrypted :

MIME Parsing will occur in the client. Content encoding will need attention, as will HTML sanitization.

Displaying multiple parts

In the case of multiple text inline & attachments parts or fowarded mails, use a similar expand/collapse mechanism than #1393

@iamdey
Copy link
Member

iamdey commented May 24, 2019

what could be the expected message structure ?
how the content should be displayed (witch properties, order) ?
how the client code could be organized ?
etc.

@MonsieurLanza
Copy link
Contributor Author

According to this
Image Pasted at 2019-5-23 15-45
Message structure could have 3 fields, replacing current body and body_is_plain

  • text_body
  • html_body
  • attachments

All of them should be arrays, of objects with metadata (MIME type, size), and data or uri to fetch that data, ordered by order of appearance in the MIME tree. Display choice between text_body and html_body if both are not empty would rely on user settings.

Main question is : what about mail message in attachments ? Recursive structure, separate one ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants