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

Allow multiple messages updates upon MessageSubmition sucees #17

Open
chibenwa opened this issue Nov 22, 2017 · 0 comments
Open

Allow multiple messages updates upon MessageSubmition sucees #17

chibenwa opened this issue Nov 22, 2017 · 0 comments

Comments

@chibenwa
Copy link
Member

Actual spec specifies : http://jmap.io/spec-mail.html#setmessagesubmissions

Standard setFoos method, with the following two extra arguments:

    onSuccessUpdateMessage: String[Message]|null A map of MessageSubmission id to an object containing properties to update on the Message object referenced by the MessageSubmission if the create/update/destroy succeeds. (For references to MessageSubmission creations, this is equivalent to a back reference so the id will be the creation id prefixed with a #.)
    onSuccessDestroyMessage: String[]|null A list of MessageSubmission ids for which the message with the corresponding messageId should be destroyed if the create/update/destroy succeeds. (For references to MessageSubmission creations, this is equivalent to a back reference so the id will be the creation id prefixed with a #.)

This is not enough. Only a single message could be updated. Imagine the following scenario:

  • Bob answers Alice message m1
  • Bob saves draft d1
  • Bob sends d1. d1 is referenced in the message submission. Upon delivery, he asks the message to be moved to Sent mailbox. He can do that directly with the message submission.
  • Bob needs to do an extra SetMessages request (that can be shipped in the same network call than the SetMessageSubmition) to update m1 keywords so that they include "$Aswered"

Here:

  • There is no extra cost associated to the SetMessage request for $Answered
  • The question is more When do we want to set $Aswered flag? After messageSubmission creation? Or when the delivery succeeded?

Any thoughts?

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

No branches or pull requests

1 participant